I am using heroku, and in doing so, am experiencing my first foray into postgresql. Maybe I just never came across it in development, but I am unable to save entries into my database that are longer than 255 characters. Is there a way around this? Currently the I am just using strings to store message data.
Secondly, if there is indeed a way to store more than 255 characters, is there a good way to convert my message strings into this form, using migrations? My app is currently live and in use.
Thanks!
use
textinstead ofstringon your migration type.To change a migration
script/generate migration change_string_to_textchange_column :model, :attribute, :textrake db:migrate