Sha256: f253dada9d9f1627869b0f4ff9bc4240b30e1ff8fff68eaef3225a33c5fd29d4
Contents?: true
Size: 334 Bytes
Versions: 55
Compression:
Stored size: 334 Bytes
Contents
class RemoveShippedState < ActiveRecord::Migration def self.up Order.where(:state => 'shipped').each do |order| order.update_attribute_without_callbacks("state", "complete") order.shipments.each do |shipment| shipment.state = 'shipped' shipment.save end end end def self.down end end
Version data entries
55 entries across 43 versions & 9 rubygems