This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #249 from nebulab/mm/i244-fix-migration
Remove AddBraintreeConfigurationToStores migration
- Loading branch information
Showing
3 changed files
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
db/migrate/20161125172005_add_braintree_configuration_to_stores.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
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 | ||
# The content of this migration has been removed because store's Braintree | ||
# configuration doesn't already have paypal_button_preferences fields, so | ||
# their validations will break this migration. | ||
# | ||
# Ref here for more info https://github.com/solidusio/solidus_paypal_braintree/pull/249 | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters