This is what I tried
f = 1.2
f = Marshal.dump(f) #\004\bf\v1.2\00033
after that I tried to save this f into text column and this is an error I got.
ActiveRecord::StatementInvalid: SQLException: unrecognized token: "fϾ1.2 33" (Ͼ is male symbol, but I can't find one).