On Wed, Apr 1, 2009 at 2:33 AM, Juan Kinunt
<[email protected]> wrote:
> Organization
> ConsultingFirm IS A Organization
> Client IS A Organization
>
> User
> ConsultingFirmUser IS A User
> ClientUser IS A User
>
> ConsultingFirmUser BELONGS TO ConsultingFirm
> ClientUser BELONGS TO Client
>
> ConsultingFirm HAS MANY ConsultingFirmUsers
> Client HAS MANY ClientUsers
>
> I don't know how is the best way of implementing the "IS A" relationship
> in Rails. What would you use? Inheritance or Polymorphism?

I would use a roles table and join model between users and roles.


-- 
Greg Donald
http://destiney.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
-~----------~----~----~----~------~----~------~--~---

Reply via email to