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).
Posted by Henning Koch to makandra dev (2013-05-14 09:56)