ErwinM / acts_as_tenant

Easy multi-tenancy for Rails in a shared database setup.
MIT License
1.56k stars 264 forks source link

issue on devise compatibility #276

Closed iprog21 closed 2 years ago

iprog21 commented 2 years ago

I am trying to register a new user with same email on different tenants. I saw this validates_uniqueness_to_tenant :name, :email on the documentation. but it seems not working. devise still validating the uniqueness of the email. is there any solution on this? or I need to do magic on it :) .

Rails Version: 7.0.2.2 Ruby Version: 3.1.0

excid3 commented 2 years ago

You'll need to disable the Devise validatable module on your model.