mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-03 22:06:07 +00:00
13 lines
208 B
Ruby
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
|