Sha256: e4404a8c52a469b0659b64e3f9a3180d5f1bec6a3d36c7a1bebd0d750303432c

Contents?: true

Size: 737 Bytes

Versions: 14

Compression:

Stored size: 737 Bytes

Contents

class CreateProtxGateway < ActiveRecord::Migration
  def self.up
    protx = Gateway.create(
      :clazz => 'ActiveMerchant::Billing::ProtxGateway',
      :name => 'Protx',
      :description => "Active Merchant's Protx Gateway (IE/UK)" 
    ) 

    GatewayOption.create(:name => 'login', :description => 'Your Protx Login', :gateway_id => protx.id, :textarea => false)
    GatewayOption.create(:name => 'password', :description => 'Your Protx Password', :gateway_id => protx.id, :textarea => false)
    GatewayOption.create(:name => 'account', :description => 'Protx sub account name (optional)', :gateway_id => protx.id, :textarea => false)
  end

  def self.down
    protx = Gateway.find_by_name('Protx')
    protx.destroy
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.9.4 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.9.3 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.9.2 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.9.1 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.9.0 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.4 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.5 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.7.0 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.7.1 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.0 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.1 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.2 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb
spree-0.8.3 vendor/extensions/payment_gateway/db/migrate/20090218091936_create_protx_gateway.rb