From 4844476e77f625829d99b7db2680186939ef660a Mon Sep 17 00:00:00 2001 From: James Lopez Date: Wed, 16 Nov 2016 12:10:12 +0100 Subject: [PATCH] use concurrent index in migration --- .../20161020083353_add_pipeline_id_to_merge_request_metrics.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20161020083353_add_pipeline_id_to_merge_request_metrics.rb b/db/migrate/20161020083353_add_pipeline_id_to_merge_request_metrics.rb index 507d576d0bc..ed53756cd24 100644 --- a/db/migrate/20161020083353_add_pipeline_id_to_merge_request_metrics.rb +++ b/db/migrate/20161020083353_add_pipeline_id_to_merge_request_metrics.rb @@ -25,7 +25,7 @@ class AddPipelineIdToMergeRequestMetrics < ActiveRecord::Migration def change add_column :merge_request_metrics, :pipeline_id, :integer - add_index :merge_request_metrics, :pipeline_id + add_concurrent_index :merge_request_metrics, :pipeline_id add_foreign_key :merge_request_metrics, :ci_commits, column: :pipeline_id, on_delete: :cascade end end