summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-30 14:25:27 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-30 14:25:27 +0300
commitcc331684593143cba773b0160222865eeb86b134 (patch)
tree735dd5494e593e1ed2a34ef063456b52707fd27c /db/migrate
parent6ac26a3cb6feabf09aefc4e23855c393d50cf08a (diff)
downloadgitlab-ce-cc331684593143cba773b0160222865eeb86b134.tar.gz
Add indicies to labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20140730111702_add_index_to_labels.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20140730111702_add_index_to_labels.rb b/db/migrate/20140730111702_add_index_to_labels.rb
new file mode 100644
index 00000000000..494241c873c
--- /dev/null
+++ b/db/migrate/20140730111702_add_index_to_labels.rb
@@ -0,0 +1,7 @@
+class AddIndexToLabels < ActiveRecord::Migration
+ def change
+ add_index "labels", :project_id
+ add_index "label_links", :label_id
+ add_index "label_links", [:target_id, :target_type]
+ end
+end