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.

Require Rails 8.1 across the CI matrix

Damian Legawiec486750f0e623
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 0bb3ee3962..235ada7a6f 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -69,7 +69,7 @@ jobs:
runs-on: ubuntu-latest
env:
DB: mysql
- RAILS_VERSION: "7.2.0"
+ RAILS_VERSION: "~> 8.1.0"
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
steps:
@@ -290,7 +290,7 @@ jobs:
DB_HOST: 127.0.0.1
DB_USERNAME: root
DB_PASSWORD: password
- RAILS_VERSION: "7.2.0"
+ RAILS_VERSION: "~> 8.1.0"
CI_ARTIFACTS: /tmp/test-artifacts
BUNDLE_JOBS: 4
BUNDLE_RETRY: 3
diff --git a/CLAUDE.md b/CLAUDE.md
index 995594f687..8b900e2e00 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -181,7 +181,7 @@ end
### Migrations
-- Target version: `ActiveRecord::Migration[7.2]` (Rails 7.2 support)
+- Target version: existing migrations keep their `ActiveRecord::Migration[7.2]` marker; new 6.0 migrations may target `[8.1]` — the 6.0 line requires Rails 8.1 (decisions.md 2026-07-29)
- No foreign key constraints
- No default values
- Always add `null: false` on required columns
diff --git a/docs/plans/decisions.md b/docs/plans/decisions.md
index b4b732789e..5d954d4136 100644
--- a/docs/plans/decisions.md
+++ b/docs/plans/decisions.md
@@ -618,3 +618,20 @@ skipped. No separate draft-order entity and no `is_draft` boolean —
`status = 'draft'` already encodes it (`cart_id` does NOT: the completion
pipeline's draft copy has a cart_id while briefly draft; admin drafts
have none).
+
+
+## 2026-07-29 — Spree 6.0 requires Rails 8.1 (7.2 support dropped)
+
+The core gemspec already pins `rails >= 8.1, < 8.2` and the deprecation
+bridges lean on Rails 8.1's `deprecated:` association option across every
+6.0 rename twin — supporting 7.2 would mean hand-rolled warn-wrappers for
+all of them on a platform whose security support ends 2026-08-09, before
+6.0 GA. Rails 8.1 (Oct 2025, supported to Oct 2027) also unlocks
+ActiveJob Continuations for resumable long-running jobs (upgrade data
+migrations, imports, bulk operations — the durable-steps half of a
+Medusa-style workflow story; compensation logic stays ours, e.g.
+`Carts::Complete`). Existing stores upgrade Rails to 8.1 on the 5.6 line
+first, then take 6.0 — 5.6 remains the bridge release. CI: the MySQL
+lanes were the designated old-Rails coverage (`RAILS_VERSION: 7.2.0`) and
+could no longer bundle; they now run 8.1 like the rest — MySQL itself
+stays fully supported.