Commit 4844476e authored by James Lopez's avatar James Lopez

use concurrent index in migration

parent cf2dcf04
...@@ -25,7 +25,7 @@ class AddPipelineIdToMergeRequestMetrics < ActiveRecord::Migration ...@@ -25,7 +25,7 @@ class AddPipelineIdToMergeRequestMetrics < ActiveRecord::Migration
def change def change
add_column :merge_request_metrics, :pipeline_id, :integer 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 add_foreign_key :merge_request_metrics, :ci_commits, column: :pipeline_id, on_delete: :cascade
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment