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

Version Path
erp_orders-3.1.1 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb