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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 16:01:08 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 16:01:08 +0400
commit9787c37aed0c934d9ae4f6786413eb25b55c3a17 (patch)
tree5525cfdd541b3b9aa266331f2968426fd3f16426 /db/migrate/20130622115340_add_more_db_index.rb
parentee13297af2706be438666a3761938423fc9a51db (diff)
More db index
Diffstat (limited to 'db/migrate/20130622115340_add_more_db_index.rb')
-rw-r--r--db/migrate/20130622115340_add_more_db_index.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20130622115340_add_more_db_index.rb b/db/migrate/20130622115340_add_more_db_index.rb
new file mode 100644
index 00000000000..9570a7a3f1e
--- /dev/null
+++ b/db/migrate/20130622115340_add_more_db_index.rb
@@ -0,0 +1,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