Sha256: eab7763cde41e835280e8c28b24b2701ba97054634678e12bc6d312c89aed325
Contents?: true
Size: 491 Bytes
Versions: 15
Compression:
Stored size: 491 Bytes
Contents
# frozen_string_literal: true 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.find_each do |variant| variant.stock_items.each do |stock_item| Spree::StockMovement.create(quantity: 10, stock_item: stock_item) end end
Version data entries
15 entries across 15 versions & 1 rubygems