To rollback
the latest migration, either by reverting the change
method or by running the down
method. Run command:
rake db:rollback
rails db:rollback
rake db:rollback STEP=3
rails db:rollback STEP=3
STEP
provide the number of migrations to revert.
rake db:rollback VERSION=0
rails db:rollback VERSION=0