I have an ecommerce product catalogue, where I store products, product options and option values in this kind of fashion:
# models/product.rb has_many :option