I'm trying to convert a column from being :string to being :text non destructively.
Is there a straightforward method? It's PostgreSQL on Heroku.
Thanks! Chris.
I'm trying to convert a column from being :string to being :text non destructively.
Is there a straightforward method? It's PostgreSQL on Heroku.
Thanks! Chris.
You can use the change_column
in another migration
Sourced from: http://api.rubyonrails.org/classes/ActiveRecord/Migration.html & http://apidock.com/rails/ActiveRecord/ConnectionAdapters/SchemaStatements/change_column