Rename Pin payment methods to check

This commit is contained in:
Luis Ramos
2021-02-03 21:51:36 +00:00
committed by Matt-Yorkley
parent c0ddeceb1e
commit e9aa6a5cd4
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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