From e9aa6a5cd43b1ecf736d3b65d1ea485f9467888a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Wed, 3 Feb 2021 21:51:36 +0000 Subject: [PATCH] Rename Pin payment methods to check --- .../20210203215049_rename_pin_payment_methods_to_check.rb | 7 +++++++ db/schema.rb | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210203215049_rename_pin_payment_methods_to_check.rb diff --git a/db/migrate/20210203215049_rename_pin_payment_methods_to_check.rb b/db/migrate/20210203215049_rename_pin_payment_methods_to_check.rb new file mode 100644 index 0000000000..bde3427d16 --- /dev/null +++ b/db/migrate/20210203215049_rename_pin_payment_methods_to_check.rb @@ -0,0 +1,7 @@ +class RenamePinPaymentMethodsToCheck < ActiveRecord::Migration + def change + Spree::PaymentMethod + .where(type: "Spree::Gateway::Pin") + .update_all(type: "Spree::PaymentMethod::Check") + end +end diff --git a/db/schema.rb b/db/schema.rb index aa00312da6..c71d64ba0d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,6 @@ # # It's strongly recommended that you check this file into your version control system. - ActiveRecord::Schema.define(version: 20210203215049) do # These are extensions that must be enabled in order to support this database