ErwinM / acts_as_tenant

Easy multi-tenancy for Rails in a shared database setup.
MIT License
1.56k stars 264 forks source link

Disable legacy_connection_handling #308

Closed HashNotAdam closed 10 months ago

HashNotAdam commented 1 year ago

legacy_connection_handling has been deprecated and causes warnings when running RSpec

excid3 commented 1 year ago

Actually, might have to set it to false if Rails.gem_version < Gem::Version.new("6.1")

https://guides.rubyonrails.org/configuring.html#config-active-record-legacy-connection-handling

I assume Rails 6.0 was the version printing the deprecation warning?

HashNotAdam commented 1 year ago

I assume Rails 6.0 was the version printing the deprecation warning?

7.0.4.2, actually