Rails/ActiveRecord support for distributed multi-tenant databases like Postgres+Citus
Database multi-tenancy for Rack (and Rails) applications
making cross tenant data leaks a thing of the past.
Build a highly secure, no data leak, multi-tenant rails app