On 25 May 2011 22:05, Caroline M. <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #1001031:
>> On 25 May 2011 17:48, Caroline M. <li...@ruby-forum.com> wrote:
>>> belong to line_items too in the model like what is used for the products
>>> table.
>>
>> What are the columns in the products table and in the user_products
>> table?
>>
>> Colin
>
> Colin,
>
> user_products table has photo, title, message, price, id.
>
> products table has title, price, category, image_url, and id.

Would it be possible to combine the two tables (so that the user
products and products are in the same table)?  Either using STI or
maybe just have some way of knowing what sort each product is.  Then
from the point of view of your cart life would be easy.

Colin

-- 
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-talk@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.

Reply via email to