mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user