mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
DEV: Upgrade Rails to version 7.1
--------- Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:

committed by
Loïc Guitaut

parent
706e074e6c
commit
ce00f83173
@ -245,7 +245,7 @@ RSpec.configure do |config|
|
||||
CachedCounting.disable
|
||||
|
||||
begin
|
||||
ActiveRecord::Migration.check_pending!
|
||||
ActiveRecord::Migration.check_all_pending!
|
||||
rescue ActiveRecord::PendingMigrationError
|
||||
raise "There are pending migrations, run RAILS_ENV=test bin/rake db:migrate"
|
||||
end
|
||||
@ -718,7 +718,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
config.after(:each, type: :multisite) do
|
||||
ActiveRecord::Base.clear_all_connections!
|
||||
ActiveRecord::Base.connection_handler.clear_all_connections!
|
||||
Rails.configuration.multisite = false # rubocop:disable Discourse/NoDirectMultisiteManipulation
|
||||
RailsMultisite::ConnectionManagement.clear_settings!
|
||||
ActiveRecord::Base.establish_connection
|
||||
|
Reference in New Issue
Block a user