Multiple parent ids

Hi,

parent_id is the default name for the self-reference foreign key. What
is the convention for naming the second parent id, the third?

Thanks!
gk

On 7/4/06, Gene K. [email protected] wrote:

Hi,

parent_id is the default name for the self-reference foreign key. What
is the convention for naming the second parent id, the third?

Thanks!
gk

Acts_as_tree uses a parent_id, but there is no need for a second or
third
parent id since each object has only one parent. each parent can then
have
a parent for as many generations as you like, all using the parent_id
field. If something belongs to more than one parent directly, then you
should use HABTM or has_many :through