influitive / apartment

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

Doesn't work with Rails 6 #654

Closed cristianrosu closed 4 years ago

cristianrosu commented 4 years ago

Steps to reproduce

  1. Add gem 'apartment', '~> 2.2' to Gemfile
  2. run bundle install

Expected behaviour

Gem install should be successful

Actual behaviour

Throws this error

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

    rails (~> 6.0, >= 6.0.3.2) was resolved to 6.0.3.2, which depends on
      activerecord (= 6.0.3.2)

System configuration

cristianrosu commented 4 years ago

Never mind, works when installing it from development. I'll close this.