Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Reduce complexity.
Matthew Kennedy73eaac3eaed1
diff --git a/core/db/migrate/20210114220232_remove_store_id_from_spree_payment_methods.rb b/core/db/migrate/20210114220232_remove_store_id_from_spree_payment_methods.rbindex 2ae63c3099..8d78236cb9 100644--- a/core/db/migrate/20210114220232_remove_store_id_from_spree_payment_methods.rb+++ b/core/db/migrate/20210114220232_remove_store_id_from_spree_payment_methods.rb@@ -3,10 +3,10 @@ class RemoveStoreIdFromSpreePaymentMethods < ActiveRecord::Migration[6.0]Spree::PaymentMethod.all.each do |payment_method|next if payment_method.store_ids.any?- payment_method.store_ids = if payment_method[:store_id].present?- payment_method[:store_id]+ if payment_method[:store_id].present?+ payment_method.store_ids = payment_method[:store_id]else- Spree::Store.ids+ payment_method.store_ids = Spree::Store.idsendpayment_method.save