Sha256: 50f326d4d912fecec9a790b757c12454fe0f5cbf448d6f481eef41a994d3e7ae

Contents?: true

Size: 365 Bytes

Versions: 6

Compression:

Stored size: 365 Bytes

Contents

class RemoveCheckoutShippingAddressAndMethod < ActiveRecord::Migration
  def self.up      
    change_table :checkouts do |t|
      t.remove :ship_address_id
      t.remove :shipping_method_id
    end
  end

  def self.down                   
    change_table :checkouts do |t|
      t.references :shipping_method
      t.integer :ship_address_id
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb
spree-0.9.4 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb
spree-0.9.3 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb
spree-0.9.2 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb
spree-0.9.1 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb
spree-0.9.0 db/migrate/20090809170304_remove_checkout_shipping_address_and_method.rb