search for: friendship_information

Displaying 1 result from an estimated 1 matches for "friendship_information".

2008 Nov 20
3
Any progress on undirected self-referential many to many relationships?
...(when it started, who introduced them, where they met, etc.) We want to query "Are Bob and Alice friends?", "Who are Bob''s friends?", "Who are the people that introduce Bob to friends?" etc. We could represent this as a has_many :through relationship, with a friendship_information database (containing extra information), and a friendship database with two entries in the database per friendship (<Bob, Alice> and <Alice, Bob>). But that seems inefficient. Is there a better way to do this? Alternatively, is there a way to merge 2 lists into a single has_many? Like...