Belongs_to, multiple foreign keys?

belongs_to :father, Schools.Parent, [foreign_key: :father_id]
belongs_to :mother, Schools.Parent, [foreign_key: :mother_id]

This should work.

4 Likes