Sha256: 1d65c5dd2254e0484732e16f0deee4fa52ac4497a383d5203b88519dd7fcc040
Contents?: true
Size: 455 Bytes
Versions: 43
Compression:
Stored size: 455 Bytes
Contents
Spree::Sample.load_sample("variants") country = Spree::Country.find_by(iso: 'US') location = Spree::StockLocation.first_or_create! name: 'default', address1: 'Example Street', city: 'City', zipcode: '12345', country: country, state: country.states.first location.active = true location.save! Spree::Variant.all.each do |variant| variant.stock_items.each do |stock_item| Spree::StockMovement.create(quantity: 10, stock_item: stock_item) end end
Version data entries
43 entries across 43 versions & 1 rubygems