multi-tenant-patterns
OfficialSecure, URL-based multi-tenancy in Rails.
Software Engineering#multi-tenancy#data isolation#rails#uuid#current attributes#account scoping#migration backfill
AuthorLaunchPadLab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps Rails teams implement robust multi-tenancy so tenant data stays isolated and authorization remains predictable across requests, models, and migrations.
Core Features & Use Cases
- URL-based tenant routing that scopes every request by an account identifier in the path (with explicit scoping, not hidden defaults).
- Per-request tenant context using Current attributes (user, account, membership) to enforce membership checks and permissions consistently.
- Data isolation & migration strategies that prevent cross-account access and provide safe, incremental ways to add account scoping to existing tables, including UUID-based primary keys to reduce enumeration risk.
- Rails-specific implementation guidance for models, controllers, routes, membership management, indexing, and test coverage for isolation.
Quick Start
Ask your AI assistant to outline a Rails 8 multi-tenant design using URL-based routing with Current.account scoping, UUID primary keys, indexed tenant columns, and a safe migration plan to backfill account_id from parent records.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: multi-tenant-patterns Download link: https://github.com/LaunchPadLab/ai-bank/archive/main.zip#multi-tenant-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.