Sha256: bf43161fa1b01a8bdfabf234ba45fcd769700f6ab07b3ddd191f28253a5d1af1

Contents?: true

Size: 344 Bytes

Versions: 25

Compression:

Stored size: 344 Bytes

Contents

class UpdatePaypalPaymentMethodType < SpreeExtension::Migration[4.2]
  def up
    Spree::PaymentMethod.where(:type => "Spree::Gateway::PayPal").update_all(:type => "Spree::Gateway::PayPalGateway")
  end

  def down
    Spree::PaymentMethod.where(:type => "Spree::Gateway::PayPalGateway").update_all(:type => "Spree::Gateway::PayPal")
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
spree_gateway-3.3.3 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.3.2 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.3.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.3.0.rc2 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.3.0.rc1 db/migrate/20131008221012_update_paypal_payment_method_type.rb