I want to use Single Table Inheritance using a column other than type
. According to the Rails documentation - http://api.rubyonrails.org/classes/ActiveRecord/Base.html, I can do this by modifying ActiveRecord::Base.inheritance_column
. How can I do this?
Change ActiveRecord::Base.inheritance_column in a rails app
7k views Asked by Eric Baldwin At
1
Try the following:
Your migrations should work everywhere.