mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
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:
@ -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!
|
||||
|
Reference in New Issue
Block a user