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

10 lines
274 B
Ruby
Raw Normal View History

# 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