summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-09-20 18:32:51 +0200
committerAhmad Sherif <me@ahmadsherif.com>2016-09-23 13:19:16 +0200
commit0560b7a2ab87382cbbf60e62c76085eb686da284 (patch)
tree8864295849ba0fe90b93d8aa5b9305b23cc12a1d /db/migrate
parent3b746412834d194e1f4b593b9b63fa711591981e (diff)
downloadgitlab-ce-0560b7a2ab87382cbbf60e62c76085eb686da284.tar.gz
Add index on labels title
Diffstat (limited to 'db/migrate')
-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