Sha256: e5d4e89f0b988efd5b7bd24952ff1e9edbffb74ebe5b54659f3034af9bb54600
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
# This migration comes from spree (originally 20150227161934) 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
2 entries across 2 versions & 1 rubygems