Sha256: 97d98ec090f41610072ca613912b57dc214a0a96288c9feedfcfec3ec7e0eb21

Contents?: true

Size: 461 Bytes

Versions: 7

Compression:

Stored size: 461 Bytes

Contents

class RemovePaymentMethods < ActiveRecord::Migration
  def self.up
    drop_table    :shop_payment_methods
    remove_index  :shop_payments, :shop_payment_method_id
    remove_column :shop_payments, :shop_payment_method_id
  end

  def self.down
    add_column  :shop_payments, :shop_pamyent_method_id, :integer
    add_index   :shop_payments, :shop_payment_method_id
  
    create_table :shop_payment_methods do |t|
      t.string      :name
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiant-shop-extension-0.11.6 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.11.5 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.11.4 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.11.3 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.11.1 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.11.0 db/migrate/20100927041219_remove_payment_methods.rb
radiant-shop-extension-0.10.0 db/migrate/20100927041219_remove_payment_methods.rb