Sha256: 428b5486c8be610c9349a5271cc36c6e1b878fd10f2ef7fe809ee1bc47cba80f

Contents?: true

Size: 281 Bytes

Versions: 7

Compression:

Stored size: 281 Bytes

Contents

class ChangePaymentsAddGateway < ActiveRecord::Migration
  def self.up
    add_column  :shop_payments, :gateway, :string
    add_index   :shop_payments, :gateway
  end

  def self.down
    remove_index  :shop_payments, :gateway
    remove_column :shop_payments, :gateway
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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