cfwheels-dbmigrate-plugin icon indicating copy to clipboard operation
cfwheels-dbmigrate-plugin copied to clipboard

A handy "redo" tool to re-run the most recent migration

Open chapmandu opened this issue 10 years ago • 0 comments

This feature would be very handy during the development of migration scripts. Perhaps a link on the plugin's index page. I'm not convinced the the step parameter is required?

From http://guides.rubyonrails.org/migrations.html

The db:migrate:redo task is a shortcut for doing a rollback and then migrating back up again. As with the db:rollback task, you can use the STEP parameter if you need to go more than one version back, for example:

$ rake db:migrate:redo STEP=3 Neither of these Rake tasks do anything you could not do with db:migrate. They are simply more convenient, since you do not need to explicitly specify the version to migrate to.

chapmandu avatar Apr 10 '14 23:04 chapmandu