Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-21 15:35:06 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-21 15:35:06 +0300
commit3fd4a37d588d0b89f402e46ba633366b1a020019 (patch)
tree521b991e2f28adde64f1be9fccfe0b7b840241ce /db/migrate/20161018124658_make_project_owners_masters.rb
parente4d42a62d928d31390ce29fc52891a8973784f2d (diff)
Disable transactions in migrations that should not use it
Diffstat (limited to 'db/migrate/20161018124658_make_project_owners_masters.rb')
-rw-r--r--db/migrate/20161018124658_make_project_owners_masters.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20161018124658_make_project_owners_masters.rb b/db/migrate/20161018124658_make_project_owners_masters.rb
index fe11699c196..cb93b449067 100644
--- a/db/migrate/20161018124658_make_project_owners_masters.rb
+++ b/db/migrate/20161018124658_make_project_owners_masters.rb
@@ -4,6 +4,8 @@ class MakeProjectOwnersMasters < ActiveRecord::Migration
DOWNTIME = false
+ disable_ddl_transaction!
+
def up
update_column_in_batches(:members, :access_level, 40) do |table, query|
query.where(table[:access_level].eq(50).and(table[:source_type].eq('Project')))