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.

fixed agent rules to use Rails 8 migrations

Damian Legawiec64dca5643143
diff --git a/CLAUDE.md b/CLAUDE.md
index 6be046c50d..f36abb2294 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -213,7 +213,7 @@ let(:variant) { build(:variant, product: product) }
```ruby
# ✅ Proper migration structure
-class CreateSpreeMetafields < ActiveRecord::Migration[7.0]
+class CreateSpreeMetafields < ActiveRecord::Migration[8.0]
def change
create_table :spree_metafields do |t|
t.string :key, null: false
diff --git a/core/.cursor/rules/core.mdc b/core/.cursor/rules/core.mdc
index 00b8331e2c..1d25c23cd4 100644
--- a/core/.cursor/rules/core.mdc
+++ b/core/.cursor/rules/core.mdc
@@ -107,7 +107,7 @@ end
```ruby
# ✅ Proper migration structure
-class CreateSpreeMetafields < ActiveRecord::Migration[7.0]
+class CreateSpreeMetafields < ActiveRecord::Migration[8.0]
def change
create_table :spree_metafields do |t|
t.string :key, null: false