index for commit_id. Schema rebuiled. Non rollback migration exception added

This commit is contained in:
Dmitriy Zaporozhets 2012-12-19 12:08:27 +02:00
parent 96af55bb85
commit 69c8231b49
3 changed files with 20 additions and 13 deletions

View file

@ -15,7 +15,6 @@ class MoveNoteableCommitToOwnField < ActiveRecord::Migration
end
def down
remove_column :notes, :commit_id
remove_column :notes, :new_noteable_id
raise ActiveRecord::IrreversibleMigration
end
end