2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-04-13 21:21:31 -04:00
|
|
|
# We do not run this in production cause it is intrusive and has
|
|
|
|
# potential to break stuff, it also breaks under concurrent use
|
|
|
|
# which rake:multisite_migrate uses
|
|
|
|
#
|
|
|
|
# The protection is only needed in Dev and Test
|
|
|
|
if ENV['RAILS_ENV'] != "production"
|
|
|
|
require_dependency 'migration/safe_migrate'
|
|
|
|
Migration::SafeMigrate.patch_active_record!
|
|
|
|
end
|