Curious about the best direction or design pattern to use here - looking for opinions.
I have a store with products diced into categories. Should I create a polymorphic model 'Product' and have individual models for the product types? Reason is - the products differ quite a bit in columns/profile etc... I could keep in one table but feel it will get horizontally fat quickly as these different product types get modified. Question is - I'll need to access these different products so would I simply delegate attributes to the Product model so I can access each related model's attributes? For instance, I'll need to fetch all of a certain type through the Product model. I guess I could use STI for this but seems polymorphic would perform better. Appreciate any feedback on whether this is practical or way off. -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.