michaelp0730
5/2/2015 - 12:03 AM

Rails Roll back DB

Assuming you migrated a database with: bundle exec rake db:migrate

# Undo a single migration step:
$ bundle exec rake db:rollback

# Roll back to the beginning
# You may substitue the 0 to roll back to another version
$ bundle exec rake db:migrate VERSION=0