influitive / apartment

Database multi-tenancy for Rack (and Rails) applications
2.66k stars 464 forks source link

Support Rails 6.1 #665

Open codeodor opened 3 years ago

codeodor commented 3 years ago

Rails 6 is not going to replace Apartment for us. It seems to be geared toward switching between known (at boot time) databases, whereas we need support for new databases at runtime.

nbw commented 3 years ago

For those who stumble upon this, there's a fork that supports Rails 6: https://github.com/rails-on-services/apartment

Comment: https://github.com/influitive/apartment/issues/638#issuecomment-653579615

We use it in production and it works.

dapi commented 1 year ago

Does somebody use this patch in production?