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
Update migration files to associate store.
Matthew Kennedy9434d2d03ff3
diff --git a/core/db/migrate/20210902110757_create_spree_wishlists.rb b/core/db/migrate/20210902110757_create_spree_wishlists.rbindex 66cce7a5b7..6750e278bf 100644--- a/core/db/migrate/20210902110757_create_spree_wishlists.rb+++ b/core/db/migrate/20210902110757_create_spree_wishlists.rb@@ -1,7 +1,8 @@class CreateSpreeWishlists < ActiveRecord::Migration[5.2]def changecreate_table :spree_wishlists, if_not_exists: true do |t|- t.references :user+ t.belongs_to :user+ t.belongs_to :storet.column :name, :stringt.column :token, :stringdiff --git a/core/db/migrate/20210902123011_create_spree_wished_products.rb b/core/db/migrate/20210902123011_create_spree_wished_products.rbindex c4d627fe37..56fd96765e 100644--- a/core/db/migrate/20210902123011_create_spree_wished_products.rb+++ b/core/db/migrate/20210902123011_create_spree_wished_products.rb@@ -2,7 +2,7 @@ class CreateSpreeWishedProducts < ActiveRecord::Migration[5.2]def changecreate_table :spree_wished_products, if_not_exists: true do |t|t.references :variant- t.references :wishlist+ t.belongs_to :wishlistt.column :quantity, :integer, default: 1, null: falset.column :remark, :text@@ -14,4 +14,3 @@ class CreateSpreeWishedProducts < ActiveRecord::Migration[5.2]add_index :spree_wished_products, :wishlist_id unless index_exists?(:spree_wished_products, :wishlist_id)endend-