Commit fece0e20 authored by pbair's avatar pbair

Ensure structure:load runs in single transaction

Add an initializer to set additional flag on db:structure:load that will
load the structure.sql file in a single transaction.
parent 0b30d88d
# 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment