mirror of
https://github.com/discourse/discourse.git
synced 2024-12-30 08:43:53 +08:00
12 lines
378 B
Ruby
12 lines
378 B
Ruby
# 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
|