Open-source gem · Published
PostgresMultitenant
A published Ruby gem for schema-based tenant isolation in Rails applications backed by PostgreSQL.
Public repository · MIT licensed
The challenge
Why the work mattered
Extract schema-per-tenant behavior into a reusable library with safe routing, lifecycle operations, clear configuration, and support across multiple Rails generations.
My contribution
From direction to delivery
Gem API design, middleware, schema lifecycle helpers, Rails generator and rake tasks, compatibility work, documentation, packaging, and release verification.
What exists
Reusable infrastructure, shipped publicly
Version 0.1.0 is available on RubyGems with request middleware, PostgreSQL search-path switching, tenant create/drop/sync helpers, install generation, migration tasks, and documented compatibility from Rails 6.1 through Rails 8.1.