Sha256: 822e92ed176a9502fd3a12d0525ba4841482415ea8e7afd3c8a0903b970f8c58

Contents?: true

Size: 208 Bytes

Versions: 35

Compression:

Stored size: 208 Bytes

Contents

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

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
spree_core-1.2.5 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.6 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.5 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.4 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.7 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.3 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.4 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.0 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.0.rc2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.2.0.rc1 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.3 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.6 db/migrate/20101026185022_update_order_state.rb
spree_pag_seguro-1.0.7 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_core-1.1.2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.2.rc1 db/migrate/20101026185022_update_order_state.rb
spree_pag_seguro-1.0.6 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_pag_seguro-1.0.5 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_pag_seguro-1.0.4 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_core-1.1.1 db/migrate/20101026185022_update_order_state.rb