add db indexes

This commit is contained in:
Valery Sizov 2012-01-19 22:31:34 +02:00
parent 744814c509
commit e46dab1ac5
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,9 @@
class AddIndexes < ActiveRecord::Migration
def change
add_index :issues, :project_id
add_index :merge_requests, :project_id
add_index :notes, :noteable_id
add_index :notes, :noteable_type
end
end