```ruby
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```

Revert "Fix ambiguous column name in UpdateShipmentStateForCanceledOrders"
user
```ruby
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
  def up
    Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
  end

  def down
  end
end
```
assistant