class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
  def up
    Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
  end

  def down
  end
end

class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
  def up
    Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'")
  end

  def down
  end
end
Fix ambiguous column name in UpdateShipmentStateForCanceledOrders migration
Fix ambiguous column name in UpdateShipmentStateForCanceledOrders
migration

[Closes #2792]
