Turns out there’s a handy rake task in your Rails 2.x app:
rake db:migrate:redo
If you run this task, it’ll take the latest migration you’ve applied, down()
it, then up()
it. Useful for testing both methods in your migration.
Turns out there’s a handy rake task in your Rails 2.x app:
rake db:migrate:redo
If you run this task, it’ll take the latest migration you’ve applied, down()
it, then up()
it. Useful for testing both methods in your migration.