Commit 40f82832 authored by Yannis Roussos's avatar Yannis Roussos

Merge branch '241267-load-structure-sql-single-transaction' into 'master'

Ensure structure:load runs in single transaction

See merge request gitlab-org/gitlab!48276
parents 853b7ea2 fece0e20
# 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