This was created as reference code to a blog post:
http://writingrolemodel.blogspot.com/2016/02/dynamic-rails-model.html
Can spin up the application if you wish:
rake db:create rake db:migrate rake db:seed
Will create a customers table and sets of “customer” tables for each customer. Application allows you to select a customer and manager the tables it owns.
Models for the “customer” tables are created dynamically.