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