Multiple Table Inheritance – Introduction
It is a fact that sometimes we want to achieve a database design similar to the design of classes and subclasses in OOP. This design is what we call Multiple Table Inheritance (MTI). The idea behind it is to have a main table which will hold all the basic attributes of the underlying models and separate tables for the underlying models each of them will hold specific attributes special for each model.
Multiple Table Inheritance – Rails 3 Implementation
Enough of the theory, let’s get our hands dirty and make it work in the Rails framework. Continue reading