I have a class named Post
:
class Post < ActiveRecord::Base
end
I have a class named Question
that inheriting f
You will need to set your column type using self.inheritance_column Then you will have to provide your own behavior for the following method: "sti_class_for(type_name)" which is located in this file "activerecord/lib/active_record/inheritance.rb"
so you will have to monkey patch the above file.
This is not the recommended way, you will have to make a migration and change all the values to match your class name.