Update db/migrate/20241011071014_update_item_name_to_product_in_od_report.rb

Co-authored-by: David Cook <david@redcliffs.net>
This commit is contained in:
Ahmed Ejaz
2024-10-18 12:32:14 +05:00
committed by GitHub
parent e10c3dc59b
commit 355541e8de

View File

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