diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-21 15:35:06 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-06-21 15:35:06 +0300 |
commit | 3fd4a37d588d0b89f402e46ba633366b1a020019 (patch) | |
tree | 521b991e2f28adde64f1be9fccfe0b7b840241ce /db/migrate/20161018124658_make_project_owners_masters.rb | |
parent | e4d42a62d928d31390ce29fc52891a8973784f2d (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.rb | 2 |
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'))) |