Ruby on Rails Single Table Inheritance Rails model with type column and without STI


Example

Having type column in a Rails model without invoking STI can be achieved by assigning :_type_disabled to inheritance_column:

class User < ActiveRecord::Base
  self.inheritance_column = :_type_disabled
end