Sha256: 4f47e9e2eefa11a995f2712c0605d3736cc323b3cdc6ab470383aa18e99064dd

Contents?: true

Size: 238 Bytes

Versions: 4

Compression:

Stored size: 238 Bytes

Contents

class AddBraintreeConfigurationToStores < SolidusSupport::Migration[4.2]
  def up
    Spree::Store.all.each(&:create_braintree_configuration)
  end

  def down
    SolidusPaypalBraintree::Configuration.joins(:store).destroy_all
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_paypal_braintree-0.4.0 db/migrate/20161125172005_add_braintree_configuration_to_stores.rb
solidus_paypal_braintree-0.3.0 db/migrate/20161125172005_add_braintree_configuration_to_stores.rb
solidus_paypal_braintree-0.2.0 db/migrate/20161125172005_add_braintree_configuration_to_stores.rb
solidus_paypal_braintree-0.1.0 db/migrate/20161125172005_add_braintree_configuration_to_stores.rb