Rails model with type column and without STI
suggest changeHaving 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents