Skip to content
Snippets Groups Projects
Commit a0260bb5 authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Disable transaction when adding index for Ci::Pipeline

parent 550466dd
No related branches found
No related tags found
1 merge request!5319Disable transaction when adding index for Ci::Pipeline
Pipeline #
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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment