summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-07-18 14:01:57 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-07-18 14:01:57 +0200
commita0260bb57777ae66353bbcd079405702cc6800d7 (patch)
tree24ef4737c07e0ec2abaf4ca4f4aeda06363ded01
parent550466dd34cb97d4704644b292ab1ef271222981 (diff)
downloadgitlab-ce-a0260bb57777ae66353bbcd079405702cc6800d7.tar.gz
Disable transaction when adding index for Ci::Pipeline
-rw-r--r--db/migrate/20160715134306_add_index_for_pipeline_user_id.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb b/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
index e09caa0e6d7..7c991c6d998 100644
--- a/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
+++ b/db/migrate/20160715134306_add_index_for_pipeline_user_id.rb
@@ -1,6 +1,8 @@
class AddIndexForPipelineUserId < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
+ disable_ddl_transaction!
+
def change
add_concurrent_index :ci_commits, :user_id
end