influitive/apartment
Database multi-tenancy for Rack (and Rails) applications observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5089
- days_rel: n/a
- days_push: 812
- n_releases_24m: 0
Adoption not part of the score
2683 stars · 456 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Apartment is a Ruby gem providing database-level multi-tenancy for Rack and Rails applications, supporting tenant isolation via PostgreSQL schemas or separate databases. It offers tenant creation, switching, and per-request tenant management integrated with ActiveRecord.
Use cases
- isolate each customer's data in its own database schema in a Rails app
- switch tenants per request based on subdomain or user
- run migrations across all tenants
- sequester account or company data while sharing some common data
- create and manage tenants programmatically in a SaaS application
When to choose
- you're building a Rails/Rack SaaS app needing schema- or database-per-tenant isolation
- you want drop-in ActiveRecord multi-tenancy with per-request tenant switching middleware
When to avoid
- you use row-level tenancy (a tenant_id column) rather than schema/database isolation
- you're on a non-Ruby stack or non-ActiveRecord ORM
- you need a project under active development - it is in maintenance mode with no license file
Facets
library · maturity maintenance
database orm middleware web-development databases backend ruby multitenancy rails activerecord postgresql-schemas tenant-isolation web-server
1 source
- readme: https://github.com/influitive/apartment · fetched 2026-08-28 · 2c87da40e63d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| influitive/apartment | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="influitive/apartment")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem