1
I created a Migration to rename a column and only get the error;
Undefined method `to_sym' for nil:Nilclass
== 20161001182840 RenameColumnPasswordInUsersPasswordToPasswordDigest: migrating
-- rename_column(:users, :password, :password_digest)
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:
undefined method `to_sym' for nil:NilClass
the code of the Migration is:
def change
rename_column :users, :password, :password_digest
end
Whoa, did it work? So, today I had a problem with Migration here at the company, I had to go to the database and manually delete Migration inside the table "schema_migration" and run the rake db:migrate again, but it was no problem with changing name not... hehe, just to share! : D
– Andre Leoni