add db indexes
This commit is contained in:
parent
744814c509
commit
e46dab1ac5
2 changed files with 17 additions and 1 deletions
9
db/migrate/20120119202326_add_indexes.rb
Normal file
9
db/migrate/20120119202326_add_indexes.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue