I have a case of polymorphic association and STI here.
# app/models/car.rb class Car < ActiveRecord::Base belongs_to :borrowable, :polymorphic => tru
There is a gem. https://github.com/appfolio/store_base_sti_class
Tested and it works on various versions of AR.