If you have a table that is belonged to several another tables, which would be the best way to create it? Having in mind that it only can be belonged to one table at the same time.
Is this correct? ------------------- class Email property :id, Serial belongs_to :person belongs_to :group end class Person property :id, Serial has n :emails end class Group property :id, Serial has n :emails end ------------------- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en -~----------~----~----~----~------~----~------~--~---
