Tuesday, December 18, 2007

rake db:migrate:redo

Nice new rake command to rollback one migration and migrate back up. If you need to go further than one step back pass the STEP=x parameter.

#Roll back 3 migrations and migrate back to current version.
rake db:migrate:redo STEP=3

0 comments: