class AddBraintreeConfigurationToStores < ActiveRecord::Migration
  def up
    Spree::Store.all.each(&:create_braintree_configuration)
  end

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

Add default configuration to stores in a migration
Add default configuration to stores in a migration
