Sha256: f9e9e40865be696268d4188ce0875306cde6f178d6214dd9c7832c3b08b9b645
Contents?: true
Size: 636 Bytes
Versions: 19
Compression:
Stored size: 636 Bytes
Contents
class UpdateDetailsColumnInShipmentInstructionItems < ActiveRecord::Migration[7.1] def up Comee::Core::ShipmentInstructionItem.reset_column_information Comee::Core::ShipmentInstructionItem.find_each do |item| details = { customer_item_no: item.shipment_item.sales_order_item.customer_item_no, customer_item_description: item.shipment_item.sales_order_item.customer_item_description, customer_item_alias: item.shipment_item.sales_order_item.customer_item_alias, use_alias: item.shipment_item.sales_order_item.use_alias } item.update_column(:details, details) end end end
Version data entries
19 entries across 19 versions & 1 rubygems