Desk2Mob

Desk2Mob

Desk2Mob

How to rollback Rails database migrations?

  • To rollback your most recent migration, execute below command
    rake db:migrate:rollback
  • If you want to rollback specific migration, you need to execute below command
    rake db:migrate VERSION=<version to rollback to>

Posted on February 03, 2014 by Amit Pandya in Rails


All Posts