db/samples/variants.rb in solidus_sample-1.2.3 vs db/samples/variants.rb in solidus_sample-1.3.0.beta1

- old
+ new

@@ -20,106 +20,106 @@ blue = Spree::OptionValue.find_by_name!("Blue") green = Spree::OptionValue.find_by_name!("Green") variants = [ { - :product => ror_baseball_jersey, - :option_values => [small, red], - :sku => "ROR-00001", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [small, red], + sku: "ROR-00001", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [small, blue], - :sku => "ROR-00002", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [small, blue], + sku: "ROR-00002", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [small, green], - :sku => "ROR-00003", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [small, green], + sku: "ROR-00003", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [medium, red], - :sku => "ROR-00004", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [medium, red], + sku: "ROR-00004", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [medium, blue], - :sku => "ROR-00005", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [medium, blue], + sku: "ROR-00005", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [medium, green], - :sku => "ROR-00006", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [medium, green], + sku: "ROR-00006", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [large, red], - :sku => "ROR-00007", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [large, red], + sku: "ROR-00007", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [large, blue], - :sku => "ROR-00008", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [large, blue], + sku: "ROR-00008", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [large, green], - :sku => "ROR-00009", - :cost_price => 17 + product: ror_baseball_jersey, + option_values: [large, green], + sku: "ROR-00009", + cost_price: 17 }, { - :product => ror_baseball_jersey, - :option_values => [extra_large, green], - :sku => "ROR-00010", - :cost_price => 17 - }, + product: ror_baseball_jersey, + option_values: [extra_large, green], + sku: "ROR-00010", + cost_price: 17 + } ] masters = { ror_baseball_jersey => { - :sku => "ROR-001", - :cost_price => 17, + sku: "ROR-001", + cost_price: 17 }, ror_tote => { - :sku => "ROR-00011", - :cost_price => 17 + sku: "ROR-00011", + cost_price: 17 }, ror_bag => { - :sku => "ROR-00012", - :cost_price => 21 + sku: "ROR-00012", + cost_price: 21 }, ror_jr_spaghetti => { - :sku => "ROR-00013", - :cost_price => 17 + sku: "ROR-00013", + cost_price: 17 }, ror_mug => { - :sku => "ROR-00014", - :cost_price => 11 + sku: "ROR-00014", + cost_price: 11 }, ror_ringer => { - :sku => "ROR-00015", - :cost_price => 17 + sku: "ROR-00015", + cost_price: 17 }, ror_stein => { - :sku => "ROR-00016", - :cost_price => 15 + sku: "ROR-00016", + cost_price: 15 }, apache_baseball_jersey => { - :sku => "APC-00001", - :cost_price => 17 + sku: "APC-00001", + cost_price: 17 }, ruby_baseball_jersey => { - :sku => "RUB-00001", - :cost_price => 17 + sku: "RUB-00001", + cost_price: 17 } } Spree::Variant.create!(variants)