Answers for "rails rollback last migration"

3

rails revert migration

rake db:rollback
Posted by: Guest on November-19-2020
3

rails rollback multiple migrations

rake db:rollback STEP=n 
# n = how many migrations you want to rollback
Posted by: Guest on May-11-2020
1

rails redo last migration

rake db:migrate:redo STEP=n
Posted by: Guest on November-23-2020

Code answers related to "rails rollback last migration"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language