Frederick Cheung wrote: > On Jul 19, 9:59�pm, Solidify <[email protected]> wrote: >> Hi everyone, I have a simple question: >> >> an author has a place of birth and a place of death. Both places >> should come from the same table (cities). This should be a >> many_to_many relationship, because one author may be born in the same >> city where the other author dies. >> > If I were you I'd have two belongs_to associations, one for the > birthplace and one for the death location. I don't think many-to-many > is appropriate, unless multiple locations can be associated with a > person's birth/death > > Fred
I see you read my mind while I was writing my reply. :) -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

