summaryrefslogtreecommitdiff
path: root/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb')
-rw-r--r--db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb b/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb
new file mode 100644
index 00000000000..f922ed209aa
--- /dev/null
+++ b/db/migrate/20170210062829_add_index_to_labels_for_title_and_project.rb
@@ -0,0 +1,12 @@
+class AddIndexToLabelsForTitleAndProject < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def change
+ add_concurrent_index :labels, :title
+ add_concurrent_index :labels, :project_id
+ end
+end