Skip to content

gwinklosky/dynamic_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Example project where active record models are created dynamically as more "solution" tables are added to the database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors