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
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
  def up
    Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
  end

  def down
  end
end

Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"
Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"

This reverts commit 0c04aade284df9eb06adee5fb6fb3b9db5d4f43a.

rake test_app was getting SQLite3::SQLException: near ".": syntax error
