Skip to content

Commit

Permalink
Add dimensions and weight to product samples
Browse files Browse the repository at this point in the history
I'm adding weight, height, width and depth to all products added by
product samples file.
  • Loading branch information
BravoSimone committed Aug 2, 2019
1 parent 3b055d7 commit a75b758
Showing 1 changed file with 50 additions and 9 deletions.
59 changes: 50 additions & 9 deletions sample/db/samples/products.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,62 +26,103 @@
tax_category: tax_category,
shipping_category: shipping_category,
price: 15.99,
eur_price: 14
eur_price: 14,
weight: 0.5,
height: 5,
width: 5,
depth: 5
},
{
name: "Ruby on Rails Bag",
tax_category: tax_category,
shipping_category: shipping_category,
price: 22.99,
eur_price: 19
eur_price: 19,
weight: 0.5,
height: 5,
width: 5,
depth: 5
},
{
name: "Ruby on Rails Baseball Jersey",
tax_category: tax_category,
shipping_category: shipping_category,
price: 19.99,
eur_price: 16
eur_price: 16,
weight: 0.5,
height: 20,
width: 10,
depth: 5
},
{
name: "Ruby on Rails Jr. Spaghetti",
tax_category: tax_category,
shipping_category: shipping_category,
price: 19.99,
eur_price: 16
eur_price: 16,
weight: 0.5,
height: 20,
width: 10,
depth: 5

},
{
name: "Ruby on Rails Ringer T-Shirt",
shipping_category: shipping_category,
tax_category: tax_category,
price: 19.99,
eur_price: 16
eur_price: 16,
weight: 0.5,
height: 20,
width: 10,
depth: 5

},
{
name: "Ruby Baseball Jersey",
tax_category: tax_category,
shipping_category: shipping_category,
price: 19.99,
eur_price: 16
eur_price: 16,
weight: 0.5,
height: 20,
width: 10,
depth: 5

},
{
name: "Apache Baseball Jersey",
tax_category: tax_category,
shipping_category: shipping_category,
price: 19.99,
eur_price: 16
eur_price: 16,
weight: 0.5,
height: 20,
width: 10,
depth: 5

},
{
name: "Ruby on Rails Mug",
shipping_category: shipping_category,
price: 13.99,
eur_price: 12
eur_price: 12,
weight: 1,
height: 5,
width: 5,
depth: 5

},
{
name: "Ruby on Rails Stein",
shipping_category: shipping_category,
price: 16.99,
eur_price: 14
eur_price: 14,
weight: 1,
height: 5,
width: 5,
depth: 5

}
]

Expand Down

0 comments on commit a75b758

Please sign in to comment.