diff --git a/core/db/default/spree/refund_reasons.rb b/core/db/default/spree/refund_reasons.rb new file mode 100644 index 00000000000..d0a9025b8ec --- /dev/null +++ b/core/db/default/spree/refund_reasons.rb @@ -0,0 +1 @@ +Spree::RefundReason.find_or_create_by(name: "Return processing") diff --git a/core/db/default/spree/shipping_categories.rb b/core/db/default/spree/shipping_categories.rb new file mode 100644 index 00000000000..2a3587a5c47 --- /dev/null +++ b/core/db/default/spree/shipping_categories.rb @@ -0,0 +1 @@ +Spree::ShippingCategory.find_or_create_by(name: "Default") diff --git a/core/db/default/spree/stock_locations.rb b/core/db/default/spree/stock_locations.rb new file mode 100644 index 00000000000..77914d3a22f --- /dev/null +++ b/core/db/default/spree/stock_locations.rb @@ -0,0 +1,2 @@ +Spree::StockLocation.create_with(backorderable_default: true) + .find_or_create_by!(name: 'default') diff --git a/core/db/default/spree/stores.rb b/core/db/default/spree/stores.rb index 0837ca106e7..669f0bd3eb4 100644 --- a/core/db/default/spree/stores.rb +++ b/core/db/default/spree/stores.rb @@ -2,9 +2,8 @@ unless Spree::Store.where(code: 'spree').exists? Spree::Store.new do |s| s.code = 'spree' - s.name = 'Spree Demo Site' - s.url = 'demo.spreecommerce.com' - s.mail_from_address = 'spree@example.com' - s.cart_tax_country_iso = 'US' + s.name = 'Sample Store' + s.url = 'example.com' + s.mail_from_address = 'store@example.com' end.save! end