Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Remove 'id: :serial' from create table

Matthew Kennedyb5b71acca45e
diff --git a/core/db/migrate/20210527094055_create_spree_products_stores.rb b/core/db/migrate/20210527094055_create_spree_products_stores.rb
index 6e3ba06d7f..bd0062a832 100644
--- a/core/db/migrate/20210527094055_create_spree_products_stores.rb
+++ b/core/db/migrate/20210527094055_create_spree_products_stores.rb
@@ -1,7 +1,7 @@
class CreateSpreeProductsStores < ActiveRecord::Migration[5.2]
def up
unless table_exists?(:spree_products_stores)
- create_table :spree_products_stores, id: :serial do |t|
+ create_table :spree_products_stores do |t|
t.references :product, index: true
t.references :store, index: true
t.timestamps