Sha256: 9c22056d96483d34f723f8941361051870a383ebb1805005d6a3ec5128ac83bb

Contents?: true

Size: 457 Bytes

Versions: 9

Compression:

Stored size: 457 Bytes

Contents

# This migration comes from spree (originally 20151220072838)
class RemoveShippingMethodIdFromSpreeOrders < ActiveRecord::Migration[4.2]
  def up
    if column_exists?(:spree_orders, :shipping_method_id, :integer)
      remove_column :spree_orders, :shipping_method_id, :integer
    end
  end

  def down
    unless column_exists?(:spree_orders, :shipping_method_id, :integer)
      add_column :spree_orders, :shipping_method_id, :integer
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195930_remove_shipping_method_id_from_spree_orders.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091871_remove_shipping_method_id_from_spree_orders.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091871_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182059_remove_shipping_method_id_from_spree_orders.spree.rb