Im trying to standardize data stored in my database. In the sense that I want everything stored as strings. Whats the best way to convert all datatypes into strings in rails?
So if I have something like this in my database:
t.funny = no #(boolean)
if Im converting hundreds of these to strings in a loop, whats the best way to do this?
Thanks
#to_s. If you want to convert all columns, I would write a migration and change the column type.change_column :users, :field, :string, limit: 100.