From 98775bfdb80ee4e85eb33c950a08b57fdd01486d Mon Sep 17 00:00:00 2001 From: Pavel Date: Sat, 21 Feb 2026 23:21:08 +0000 Subject: [PATCH] Pass type as keyword argument in migration serialize call Same fix as applied to Invoice and ReportRenderingOptions models in the parent PR: Rails 7.2 requires the type class to be passed as a keyword argument to serialize. serialize :options, Hash, coder: YAML -> serialize :options, type: Hash, coder: YAML Co-Authored-By: Claude Sonnet 4.6 --- .../20241011071014_update_item_name_to_product_in_od_report.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb b/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb index 6344d91188..00edf95945 100644 --- a/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb +++ b/db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb @@ -3,7 +3,7 @@ class UpdateItemNameToProductInOdReport < ActiveRecord::Migration[7.0] self.belongs_to_required_by_default = false belongs_to :user, class_name: "Spree::User" - serialize :options, Hash, coder: YAML + serialize :options, type: Hash, coder: YAML end # OD: Orders and Distributors