I have been switching between branches in a project and each of them have different migrations... This is the scenario:
$ rake db:migrate:status <
$ rake db:migrate:status
create new files with names like 20130320144219_migration_1 put some blank code into
20130320144219_migration_1
class Migration1 < ActiveRecord::Migration def change; end end
and run command rails db:migrate:down VERSION= 20130320144219 and at last - remove this files
rails db:migrate:down VERSION= 20130320144219