Skip to content

Commit 8a7bd04

Browse files
author
Harmony Bouvier
committed
Inherit from ActiveRecord::Migration version for all supported Rails
When attempting to run this migration on Rails 7.0 or Rails 7.1, an error is produced if the version of the migration is `7.2` ``` ArgumentError: Unknown migration version "7.2"; expected one of "4.2", "5.0", "5.1", "5.2", "6.0", "6.1", "7.0", "7.1" (ArgumentError) ``` Since Rails versions 7.0, 7.1, and 7.2 are currently supported, this migration should conform to, and inherit from, Rails 7.0 migrations. (cherry picked from commit f5fc005)
1 parent 07b1ebf commit 8a7bd04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/db/migrate/20250129061658_add_metadata_to_spree_resources.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
class AddMetadataToSpreeResources < ActiveRecord::Migration[7.2]
3+
class AddMetadataToSpreeResources < ActiveRecord::Migration[7.0]
44
def change
55
# List of Resources to add metadata columns to
66
%i[

0 commit comments

Comments
 (0)