Multi-Tenant Rails: Everybody Gets a Database!

Multi-Tenant Rails: Everybody Gets a Database!
Mike Dalessio • Amsterdam, Netherlands • Talk

Date: September 04, 2025
Published: not published
Announced: May 20, 2025

As Rails’s SQLite support has improved, it's finally possible to have truly multi-tenant Rails applications - isolated data for each account! - without sacrificing performance or ease of use. This talk describes a novel, production-vetted approach to isolating tenant data everywhere in Rails: the database, fragment caches, background jobs, Active Storage, Turbo Stream broadcasts, Action Mailer, and even the testing framework.

You’ll learn how to build a new multi-tenant app or migrate an existing one. You'll learn the technical details of how Rails can support multiple tenants and strict data isolation. You'll see a live demonstration of a multi-tenant app. And you'll learn why a deployment topology like this might make sense for you, and how it scales up and out.

Rails World 2025

Explore all talks scheduled for Rails World 2025
Joe Masilotti
Xavier Noria
Hartley McGuire
Kinsey Durham Grace
Adrianna Chang
OKURA Masafumi
Chris Oliver
Jack Sharkey
+14