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.

Fix migration version to allow it to be used with Rails > 7 (#11664)

Damian Legawiec6ec965255cac
diff --git a/core/db/migrate/20220222083546_add_barcode_to_spree_variants.rb b/core/db/migrate/20220222083546_add_barcode_to_spree_variants.rb
index 7a39227832..dbc0eb588c 100644
--- a/core/db/migrate/20220222083546_add_barcode_to_spree_variants.rb
+++ b/core/db/migrate/20220222083546_add_barcode_to_spree_variants.rb
@@ -1,4 +1,4 @@
-class AddBarcodeToSpreeVariants < ActiveRecord::Migration[7.0]
+class AddBarcodeToSpreeVariants < ActiveRecord::Migration[5.2]
def change
add_column :spree_variants, :barcode, :string
add_index :spree_variants, :barcode