Changing a column type to longer strings in rails
You should use text with Rails if you want a string with no length limit. A migration like this: def up change_column :your_table, :your_column, :text end def down # This might cause trouble if you have strings longer # than 255 characters. change_column :your_table, :your_column, :string end should sort things out. You might want :null … Read more