gitlab-org--gitlab-foss/db/migrate/20130622115340_add_more_db_index.rb
Dmitriy Zaporozhets 9787c37aed More db index
2013-06-22 15:01:08 +03:00

12 lines
365 B
Ruby

class AddMoreDbIndex < ActiveRecord::Migration
def change
add_index :deploy_keys_projects, :project_id
add_index :web_hooks, :project_id
add_index :protected_branches, :project_id
add_index :users_groups, :user_id
add_index :snippets, :author_id
add_index :notes, :author_id
add_index :notes, [:noteable_id, :noteable_type]
end
end