Sha256: 9077af7740f2cb4cae9be06bbac53f1eb69a670db5f94c07d7ba4979a5229d16

Contents?: true

Size: 339 Bytes

Versions: 13

Compression:

Stored size: 339 Bytes

Contents

class UpdateStripePaymentMethodType < ActiveRecord::Migration
  def up
    Spree::PaymentMethod.where(:type => "Spree::Gateway::Stripe").update_all(:type => "Spree::Gateway::StripeGateway")
  end
  
  def down
    Spree::PaymentMethod.where(:type => "Spree::Gateway::StripeGateway").update_all(:type => "Spree::Gateway::Stripe")
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

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