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