mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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 commit80e832662b. This reverts commitde5f2d3308. This reverts commit6b192d29fa. This reverts commita5b582f686. This reverts commit708dd97dfd.
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