diff options
author | James Lopez <james@jameslopez.es> | 2016-11-16 12:10:12 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-11-17 08:22:59 +0100 |
commit | 4844476e77f625829d99b7db2680186939ef660a (patch) | |
tree | 62a92720f3e3fe35b2ead1c110c0a9732385e3f9 /db | |
parent | cf2dcf043c0054785bc0258ab6393104499b8d70 (diff) | |
download | gitlab-ce-4844476e77f625829d99b7db2680186939ef660a.tar.gz |
use concurrent index in migration
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161020083353_add_pipeline_id_to_merge_request_metrics.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |