Single Table Inheritance
What is Single Table Inheritance ?
Single Table Inheritance is a mechanism through which ActiveRecord can share fields and behavior between different models while using a single table.
For eg. let’s say we need to create a Vehicle model and Car mod...
codingwithaglassofmilk.hashnode.dev2 min read