I created a migration to rename a column and I 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 migration code is:
def change
rename_column :users, :password, :password_digest
end