rollback ruby on rails code example
Example 1: rails redo last migration
rake db:migrate:redo STEP=n
Example 2: rails db:rollback
rake db:rollback VERSION=n
# n = the version you want to rollback to
rake db:migrate:redo STEP=n
rake db:rollback VERSION=n
# n = the version you want to rollback to