Sha256: b54043dd1425be4692ee325faf20d5e870912a9cb97dc07f1b4aa67a48392c1d

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

class UpdatePaypalPaymentMethodType < ActiveRecord::Migration
  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

13 entries across 13 versions & 3 rubygems

Version Path
spree_gateway-3.2.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.2.0.beta db/migrate/20131008221012_update_paypal_payment_method_type.rb
solidus_gateway-1.1.1 db/migrate/20131008221012_update_paypal_payment_method_type.rb
solidus_gateway-1.1.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.1.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-3.0.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
solidus_gateway-1.0.1 db/migrate/20131008221012_update_paypal_payment_method_type.rb
solidus_gateway-0.9.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
solidus_gateway-1.0.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_first_data_gge4-3.0.0 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-2.2.1 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-2.1.1 db/migrate/20131008221012_update_paypal_payment_method_type.rb
spree_gateway-2.0.1 db/migrate/20131008221012_update_paypal_payment_method_type.rb