On 7/4/06, Gene Kahn <kublaikhan55@hotmail.com>
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
--> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060704/b9f8154b/attachment.html