What problem does it solve?
This Skill solves the problem of setting up and managing a multi-tenant architecture with account isolation and data isolation, providing a scalable solution for applications that require multiple users with separate data sets.
Core Features & Use Cases
- URL-Based Multi-Tenancy: Implement URL-based tenant scoping for better performance and easier maintenance.
- Account Isolation: Ensure that users can belong to multiple accounts, with membership roles (member, admin, owner) for flexible access control.
- Data Isolation: Prevent data leaks between tenants through UUID-based primary keys and scoped queries.
- Use Case: Use this Skill in applications where multiple teams or businesses need to operate within the same platform while keeping their data separate, such as customer relationship management systems.
Quick Start
Generate a multi-tenant setup by running 'rails generate model Account name:string' to create an Account model with a unique name attribute.