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.1.0 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.4 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.0.rc2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.1.0.rc1 db/migrate/20101026185022_update_order_state.rb
spree_pag_seguro-1.0.3 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_pag_seguro-1.0.2 spec/dummy/db/migrate/20120301154122_update_order_state.rb
spree_core-1.0.3 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.1 db/migrate/20101026185022_update_order_state.rb
spree_flat_in_range-0.1.0 spec/dummy/db/migrate/20120218160429_update_order_state.rb
spree_core-1.0.0 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.0.rc4 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.0.rc3 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.0.rc2 db/migrate/20101026185022_update_order_state.rb
spree_core-1.0.0.rc1 db/migrate/20101026185022_update_order_state.rb