Sha256: 6a7631cd7b5da3b3e68da08c464ab8ab328e04607e43c4a8b0f1dac4e783d38f
Contents?: true
Size: 267 Bytes
Versions: 39
Compression:
Stored size: 267 Bytes
Contents
class AddOrderIdsToAdjustmentsWhereMissing < ActiveRecord::Migration def up Spree::Adjustment.where(order_id: nil, adjustable_type: 'Spree::Order').update_all("order_id = adjustable_id") end def down raise ActiveRecord::IrreversibleMigration end end
Version data entries
39 entries across 39 versions & 1 rubygems