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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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