On Mar 24, 2015, at 8:08 AM, Scott Ribe <scott_r...@elevated-dev.com> wrote:
> 
> On Mar 24, 2015, at 8:04 AM, Leandro França <leandroayresfra...@gmail.com> 
> wrote:
>> 
>> Any advices?
> 
> Don't make customers & suppliers separate models/tables. Make them attributes 
> of a single model. It seems that ***EVERY*** business/accounting package on 
> earth makes this same mistake. For anybody in a "broker" type business line, 
> where it's common to both buy & sell from the same companies, this is a huge 
> annoyance.
> 
> As for company vs person, I don't have a terribly strong opinion to offer 
> about 1 model with attribute vs 2 models with inherited base.

Hit send too quickly...

You may not even want companies designated via attributes as customer or 
supplier. You may just want companies, and let the transaction history tell you 
who's a customer and who's a supplier, as that can change at any time.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
https://www.linkedin.com/in/scottribe/
(303) 722-0567 voice





-- 
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+unsubscr...@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/BCBDF033-0DA4-460F-9E36-F9BAEAF56DB6%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to