Ruby on Rails
Tuesday, March 24, 2015
Hi there,
I'm trying to decide the best approach for a person/company/customer/supplier model.
- Companies and persons can be, at the same time, customers or suppliers. They can have many roles.
-- I'm trying to decide the best approach for a person/company/customer/supplier model.
I researching about STI and polymorphic associations, but cant decide which way to go.
- Companies and persons can be, at the same time, customers or suppliers. They can have many roles.
- Company and person share many basic information (addresses, telephones, emails, etc).
Any advices?
Thanks in advance,
Leandro
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/f8300583-2006-44db-8e84-4fa76a9cdb7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment