Files
openfoodnetwork/db/migrate/20120327000624_update_order_state.rb
Andrew Spinks cd1938a74e spree install.
2012-03-27 11:06:49 +11:00

13 lines
208 B
Ruby

class UpdateOrderState < ActiveRecord::Migration
def up
Spree::Order.table_name = 'orders'
Spree::Order.all.map(&:update!)
Spree::Order.table_name = 'spree_orders'
end
def down
end
end