Ruby on Rails
Monday, August 13, 2018
Surely if every person object(eg.father) has a unique Id. Then that Id can be included in their childrens identity and fathers Id can be put into his brothers identity and sister identity and parents identity.
Then it becames a searching for matching Id's both depth wise and breadth wise.
Isn't that what a family tree is all about creating relationships and you build it.
Cheers Dave
On Mon, Aug 13, 2018 at 6:34 PM Colin Law <clanlaw@gmail.com> wrote:
--On Mon, 13 Aug 2018 at 03:49, fugee ohu <fugee279@gmail.com> wrote:Can we revisit this one I'm doing a family tree and trying to manage spousal relationships so i have person has_many people through: :partnerships But now partnerships can't have person_id twice so this is perplexing meGoogle forrails self referential has_many throughColin
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLve84pFng5RTUKFSCKgnMW%2BCVLAOdNen4uKFE9XAaOpcA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Cell 027 3089 169
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CA%2B%3DMcKZC-t2RbzT%2B85z8xcT_RqN1u2CjN3LJbAsGcos9gBv%2BYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment