influitive / apartment

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

Getting error when bundle install apartment. #625

Open vivekkoranampatty opened 4 years ago

vivekkoranampatty commented 4 years ago

I am getting an error when I am trying to

bundle exec rails generate apartment:install

Getting this error,

build': undefined methodnew' for "Apartment::Reloader":String (NoMethodError)

Looks this is a middleware issue. Any solution.

thomasvds commented 4 years ago

You're likely running Rails 6 and hence must install the development branch - see #617.

vivekkoranampatty commented 4 years ago

Did that and after using the development branch, more issues arises

Bundler could not find compatible versions for gem "activerecord": In snapshot (Gemfile.lock): activerecord (= 6.0.2.1)

In Gemfile: apartment was resolved to 2.2.1, which depends on activerecord (>= 3.1.2, < 6.0)

rails (~> 6.0.2, >= 6.0.2.1) was resolved to 6.0.2.1, which depends on activerecord (= 6.0.2.1)

vivekkoranampatty commented 4 years ago

Did that and after using the development branch, more issues arises

Bundler could not find compatible versions for gem "activerecord": In snapshot (Gemfile.lock): activerecord (= 6.0.2.1)

In Gemfile: apartment was resolved to 2.2.1, which depends on

activerecord (>= 3.1.2, < 6.0)

rails (~> 6.0.2, >= 6.0.2.1) was resolved to 6.0.2.1, which depends on

activerecord (= 6.0.2.1)

did a bundle update didn't help too. Looking for a supported version.