diff options
Diffstat (limited to 'db/migrate/20170204181513_add_index_to_labels_for_type_and_project.rb')
-rw-r--r-- | db/migrate/20170204181513_add_index_to_labels_for_type_and_project.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20170204181513_add_index_to_labels_for_type_and_project.rb b/db/migrate/20170204181513_add_index_to_labels_for_type_and_project.rb new file mode 100644 index 00000000000..8f944930807 --- /dev/null +++ b/db/migrate/20170204181513_add_index_to_labels_for_type_and_project.rb @@ -0,0 +1,11 @@ +class AddIndexToLabelsForTypeAndProject < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def change + add_concurrent_index :labels, [:type, :project_id] + end +end |