Hello, I have the following Rails 3 migration file db\migrate\20100905201547_create_blocks.rb
How can I specifically roll back that migration file, allow me to the do: rake db:reset, followed by rake db:migrate?
Hello, I have the following Rails 3 migration file db\migrate\20100905201547_create_blocks.rb
How can I specifically roll back that migration file, allow me to the do: rake db:reset, followed by rake db:migrate?
Answer:
rake db:migrate:reset: (2.0.2) Drop the database, create it and then re-apply all migrations. The considerations outlined in the note to rake db:create apply.
rake db:rollback STEP=2
Is probably a better way to do this. You can substitute 2 for however many migrations you want to go back.