Representing ecommerce products and variations cleanly in the database
问题 I have an ecommerce store that I am building. I am using Rails/ActiveRecord, but that really isn't necessary to answer this question (however, if you are familiar with those things, please feel free to answer in terms of Rails/AR). One of the store's requirements is that it needs to represent two types of products: Simple products - these are products that just have one option, such as a band's CD. It has a basic price, and quantity. Products with variation - these are products that have