Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Invite a User Multiple Times to Different Organizations #912

Open
JeanEdern opened this issue Aug 6, 2024 · 1 comment
Open

Comments

@JeanEdern
Copy link

Hello!
I'm facing an issue with using devise_invitable in a multi-tenant application where users can belong to multiple organizations (through memberships). Specifically, I want to invite a user multiple times to different organizations. However, since devise_invitable stores all invitation information directly in the User model, a user can only be invited once, preventing them from receiving multiple invitations.

Would it be possible to enhance devise_invitable to support multiple invitations for a single user, perhaps by decoupling invitation data from the User model? Any guidance or suggestions on how to handle this within the current framework would also be appreciated.

Thank you!

@its-rishav
Copy link

You can use ros_appartment gem. It makes Multitenancy for Rails and ActiveRecord. That was for each tenant you have different db schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants