Sha256: 76b34606a0bc63f001528117b2b72adc12753200bfb9407725a6ddc97af59cbd
Contents?: true
Size: 698 Bytes
Versions: 12
Compression:
Stored size: 698 Bytes
Contents
# This migration comes from erp_commerce (originally 20101011152441) class PaymentGatewayActions def self.up PaymentGatewayAction.create( :internal_identifier => 'capture', :description => 'capture' ) PaymentGatewayAction.create( :internal_identifier => 'authorize', :description => 'Authorize' ) PaymentGatewayAction.create( :internal_identifier => 'full_reverse_of_authorization', :description => 'Full Reverse Of Authorization' ) end def self.down ['sale','void_sale','authorize'].each do |iid| type = PaymentGatewayAction.find_by_internal_identifier(iid) type.destroy unless type.nil? end end end
Version data entries
12 entries across 12 versions & 7 rubygems