We have had errors reported due to migrations breaking and are reverting

these series of commits.

See:
https://meta.discourse.org/t/new-installation-fails-on-migration/147425

This reverts commit 80e832662b.
This reverts commit de5f2d3308.
This reverts commit 6b192d29fa.
This reverts commit a5b582f686.
This reverts commit 708dd97dfd.
This commit is contained in:
Robin Ward
2020-04-09 14:17:43 -04:00
parent 64ec771dc6
commit 8b46f14744
2 changed files with 3 additions and 109 deletions

View File

@@ -1,11 +1,5 @@
# frozen_string_literal: true
# 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
require_dependency 'migration/safe_migrate'
Migration::SafeMigrate.patch_active_record!