Sha256: 64b2adfd4c811ed4f7d92845e0685f64fd1c82823e9b664e601139d6af5ab7ee

Contents?: true

Size: 354 Bytes

Versions: 13

Compression:

Stored size: 354 Bytes

Contents

class UpdateBraintreePaymentMethodType < ActiveRecord::Migration
  def up
    Spree::PaymentMethod.where(:type => "Spree::Gateway::Braintree").update_all(:type => "Spree::Gateway::BraintreeGateway")
  end
  
  def down
    Spree::PaymentMethod.where(:type => "Spree::Gateway::BraintreeGateway").update_all(:type => "Spree::Gateway::Braintree")
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

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