To me, at least, :type is a very generic & commonly in use attribute name when doing modelling, and i don't see a good reason for activerecord to use it for STI (single table inheritance) support. To use my preferred naming strategy, i did the following inside
RAILS_ROOT/config/initializers/active_record.rb 1
| ActiveRecord::Base.set_inheritance_column :sti_type
|
No comments:
Post a Comment