I am trying to develop an online application like ebay using rubyonrails.
now my problem is how to design my database to support all these different product types each having different attributes without actually creating a table for each product type. also bear in mind that a product type may have sub category and also the sub category might have another sub category and so on.
did ebay actually created a model and a table for each of the product type because that's not very efficient ?
Thanks , the posting answer my first problem of how to store my data as a tree , now how can i represent each leaf as a product with different attributes. for example one leaf might be a computer desktop with a desktop attributes and one might be shoe do i need a separate table for each of these products ?