debian-mirror-gitlab/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

2021-02-22 17:27:13 +05:30
# 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