has_many

Bogdan Ionescu
2005-09-05T15:27:18Z

I have the Human class.
In the humans table i have the fields mother_id and father_id
I would like to define in human.rb that:

has_many :children, :class_name=>''Human''

but I can''t figure out how to specify the foreign_keys. Initially I was
using f_children and m_children, and added them to obtain the children, but
I wonder if it''s a way to get the children directly.

Bogdan