Sha256: 73cbf3fd9bf91529b8d865368be0779d4143cf9a9c5777f35567b8bd23c2c704

Contents?: true

Size: 359 Bytes

Versions: 25

Compression:

Stored size: 359 Bytes

Contents

class UpdateBraintreePaymentMethodType < SpreeExtension::Migration[4.2]
  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

25 entries across 25 versions & 1 rubygems

Version Path
spree_gateway-3.3.3 db/migrate/20121017004102_update_braintree_payment_method_type.rb
spree_gateway-3.3.2 db/migrate/20121017004102_update_braintree_payment_method_type.rb
spree_gateway-3.3.0 db/migrate/20121017004102_update_braintree_payment_method_type.rb
spree_gateway-3.3.0.rc2 db/migrate/20121017004102_update_braintree_payment_method_type.rb
spree_gateway-3.3.0.rc1 db/migrate/20121017004102_update_braintree_payment_method_type.rb