w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Rails advice on planning data structure

Reduce your headaches and don't differentiate between unique items and non-unique ( ie, all items have a quantity ).

Then you want a "purchace" model, and then a "item_purchace" model to act as a join table.

Following the layout here: guides.rubyonrails.org...





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.