Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20130622115340_add_more_db_index.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9570a7a3f1e60add51ab296789059a2ccc88188e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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