influitive / apartment

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

2.2.1 not compatible with Rails 6.1 #660

Open ademdc opened 3 years ago

ademdc commented 3 years ago

I am moving our application to Rails 6, and I see that the currently newest version of apartment gem (2.2.1) is not compatible with the newly release 6.1.0.rc1 version of Rails, becasue it depends on activerecord >= 3.1.2, < 6.0, but Rails 6.1.0.rc1 depends on activerecord (= 6.1.0.rc1)

Bundler could not find compatible versions for gem "activerecord":
  In Gemfile:
    apartment (= 2.2.1) was resolved to 2.2.1, which depends on
      activerecord (>= 3.1.2, < 6.0)

    rails (= 6.1.0.rc1) was resolved to 6.1.0.rc1, which depends on
      activerecord (= 6.1.0.rc1)
nbw commented 3 years ago

You're looking for ros-apartment. It's a fork. Refer to: https://github.com/influitive/apartment/issues/638#issuecomment-653579615