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 80e832662b719425872e7ac3736fb9fc56d85aca.
This reverts commit de5f2d33087c8e9c12f83d573015d275098bd68f.
This reverts commit 6b192d29fa095e91cb40b71e76dfc811f4aa205c.
This reverts commit a5b582f686c0a8427aad3f6caf9f3a8105e66ee9.
This reverts commit 708dd97dfd0380c703678a0ee070dc62880e57f1.
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!