Enhance Multi-Tenancy with ActsAsTenant in Rails!
In this episode, we’re diving into ActsAsTenant—a gem that strengthens your multi-tenancy setup by ensuring that each tenant can only access their own data.
While ActsAsTenant doesn't provide the database architecture for multi-tenancy, it adds an essential layer of security and data isolation to your Rails app.
In the previous episode, I introduced Moneygun, a multi-tenancy boilerplate for Rails.
Now we’ll take it a step further by integrating ActsAsTenant into our existing setup, enhancing security and data management.
0:00 Multitenancy basics
1:50 Install ActsAsTenant
5:30 Enforce Require tenant
Pull Request adding ActsAsTenant https://github.com/yshmarov/moneygun/pull/120
Gem ActsAsTenant: https://github.com/ErwinM/acts_as_tenant