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}"