From 355541e8dedabc92dcdf75cc9fed65b00133786a Mon Sep 17 00:00:00 2001 From: Ahmed Ejaz Date: Fri, 18 Oct 2024 12:32:14 +0500 Subject: [PATCH] Update db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb Co-authored-by: David Cook --- .../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 9cd5b6dbf5..53cb967ea8 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 @@ -11,7 +11,7 @@ class UpdateItemNameToProductInODReport < ActiveRecord::Migration[7.0] fields_to_show.delete('item_name') fields_to_show << 'product' - option.update(options: option.options) + option.save rescue StandardError => e puts "Failed to update rendering option with id: #{option.id}" puts "Error: #{e.message}"