I want to modify the data type from string
to text
, and I followed the tutorial from
Changing a column type to longer strings in rails
and run rake db:migrate
and rake db:rollback
but it gave me an error message
== 20160203133535 ChangeNameToProfessors: migrating =========================== -- change_column(:professors, :name, :text) rake aborted! StandardError: An error has occurred, this and all later migrations canceled:
How can I solve it?
thank for answering!