It looks like string
is limited to 256 characters and text
is usually 65536 characters.
I tried
ruby script/generate migration change_description_to_text description:text
but the up
and down
in the migration file generated are both empty? Is there a way to generate this migration automatically?
If added manually using a remove_column
and an add_column
, will all the old data be removed for the column?