Inherit without Single-Table-Inheritance (STI) in ActiveRecord
You have multiple options:
- Just don't have a
typecolumn. All STI magic will be disabled automatically. - If you have a
typecolumn but want to use it for something else (WAT?), you can setself.inheritance_column = :_non_existing_columnin the class definition - (Untested) In the parent class, set
self.abstract_class = true
This technique is useful to implement form models / presenters, where you want all the goodness of ActiveRecord but want to add additional logic for a particular screen (e.g. class SignUp < User).