Open pinkfloydsito opened 3 years ago
I have exactly the same gems as you do (rails 6.1.3.1 now) different setup for tenant though, one DB - zero problems.
In my case we use two schemas, until Rails 6.0.0 it worked perfectly fine, but it breaks in later versions.
In my case we use two schemas, until Rails 6.0.0 it worked perfectly fine, but it breaks in later versions.
@pinkfloydsito give a try to this gem I was facing same issues in latter rails versions, but this gem helped
Rails 6.1.3 ruby 3.0.0 acts_as_tenant devise 4.7.3 acts_as_tenant 0.5.0
I have 2 databases, the first one is used to manage some user/account related information users, accounts, country... The second one is the one that depends on the field subdomain from the account table of the first database.
When I used this gem in the version of Rails 5.2 everything is cool, but now every time that the tenant is set all the models try to validate against the tenant selected, even the ones that should not.
Right now every time current_tenant is set and I get inside the set_current_user method the table is not available
This happens with sessions from Devise too
is anyone having the same trouble?