gitlab-org--gitlab-foss/config/initializers/structure_load_in_transaction.rb

9 lines
274 B
Ruby

# frozen_string_literal: true
ActiveRecord::Tasks::DatabaseTasks.structure_load_flags ||= []
flag = '--single-transaction'
unless ActiveRecord::Tasks::DatabaseTasks.structure_load_flags.include?(flag)
ActiveRecord::Tasks::DatabaseTasks.structure_load_flags << flag
end