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