rollback previous migrate code example Example: rails redo last migration rake db:migrate:redo STEP=n