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
Database: (Tell us what database and its version you use.)
Postgres 10
Apartment version:
2.2.1
Apartment config (in config/initializers/apartment.rb or so):
Steps to reproduce
gem 'apartment', '~> 2.2'
toGemfile
bundle install
Expected behaviour
Gem install should be successful
Actual behaviour
Throws this error
System configuration
Database: (Tell us what database and its version you use.) Postgres 10
Apartment version: 2.2.1
Apartment config (in
config/initializers/apartment.rb
or so):use_schemas
: (true
orfalse
)Rails (or ActiveRecord) version:
Ruby version: 2.7.1