I think I need to use STI in Rails.
Here is my class:
class Person < ActiveRecord::Base end class Landlord < Person end
and the people table has a :type column that contains a row.
So, I expect to see in the table that each row that is a Person has a type defined as “Person”, and each Landlord has a type specified by “Landlord”. However, this is not what I see. Each Landlord has a type set to "Landlord", but each Person has its own type, equal to zero. It is very good that the rails work, but I was just looking for confirmation.
source share