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

@ -0,0 +1,6 @@
class IndicesForNotes < ActiveRecord::Migration
def change
add_index :notes, :commit_id
add_index :notes, [:project_id, :noteable_type]
end
end