Comparison of approaches to multitenancy in Rails apps
28-May-2020 2068
You can implement multitenancy on a couple different levels. If you’re on PostgreSQL:Row level (putting tenant_id columns to every table and filtering everywhere).Schema level (namespaces is a more explanatory name, see PostgreSQL schemas).Database level (rarely practical - just for comparison).For MySQL check next paragraph. Here’s how these levels compare to each other:.
Comparison of approaches to multitenancy in Rails apps #ruby #rubydeveloper #rubyonrails #Comparison #approaches #multitenancy #Rails https://www.rubyonrails.ba/link/comparison-of-approaches-to-multitenancy-in-rails-apps