I wrongly named a column hased_password
instead of hashed_password
.
How do I update the database schema, using migration to rename this column?
I wrongly named a column hased_password
instead of hashed_password
.
How do I update the database schema, using migration to rename this column?
You have two ways to do this:
In this type it automatically runs the reverse code of it, when rollback.
To this type, it runs the up method when
rake db:migrate
and runs the down method whenrake db:rollback
: