Merge branch 'fix-track-user-migration' into 'master'
Disable transaction when adding index for Ci::Pipeline ## What does this MR do? Adds missing `disable_ddl_transaction!` ## Why was this MR needed? Fixes a broken migration for PostgreSQL See merge request !5319
This commit is contained in:
commit
4e898b9b5e
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,8 @@
|
||||||
class AddIndexForPipelineUserId < ActiveRecord::Migration
|
class AddIndexForPipelineUserId < ActiveRecord::Migration
|
||||||
include Gitlab::Database::MigrationHelpers
|
include Gitlab::Database::MigrationHelpers
|
||||||
|
|
||||||
|
disable_ddl_transaction!
|
||||||
|
|
||||||
def change
|
def change
|
||||||
add_concurrent_index :ci_commits, :user_id
|
add_concurrent_index :ci_commits, :user_id
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue