Rails model with type column and without STI
suggest changeA type column turns on single-table inheritance. Point inheritance_column at a column that does not exist, or set it to nil, and Rails will not treat type as the STI class name:
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