diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-09-20 18:32:51 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-09-23 13:19:16 +0200 |
commit | 0560b7a2ab87382cbbf60e62c76085eb686da284 (patch) | |
tree | 8864295849ba0fe90b93d8aa5b9305b23cc12a1d /db/migrate | |
parent | 3b746412834d194e1f4b593b9b63fa711591981e (diff) | |
download | gitlab-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.rb | 11 |
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 |