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