EDIT I have edited this from the original to make it easier to understand.
I understand the Object Relationship Impedance problem. I understan
On the migration, drop the FK constraints on the addressses
table. On the child classes redefine the has_many
relation and specify :foreign_key
& :foreign_type
.
On your Assignment serializer, specify the belongs_to :employee
, AMS should handle it correctly.
Also take a look at the :source
and :source_type
options of the has_many
association.