Skip to content

Commit

Permalink
Fix ambiguous column name in UpdateShipmentStateForCanceledOrders
Browse files Browse the repository at this point in the history
migration

[Closes solidusio#2792]
  • Loading branch information
sohara authored and Trung Lê committed Apr 1, 2013
1 parent e700fd1 commit 0c04aad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class UpdateShipmentStateForCanceledOrders < ActiveRecord::Migration
def up
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all(state: 'canceled')
Spree::Shipment.joins(:order).where("spree_orders.state = 'canceled'").update_all("spree_shipments.state = 'canceled'")
end

def down
end
end
end

0 comments on commit 0c04aad

Please sign in to comment.