From 757b7513ef49f266ebc7b3cec64e2f70208e5ebd Mon Sep 17 00:00:00 2001 From: Nihal Date: Fri, 10 Sep 2021 14:35:21 +0530 Subject: [PATCH] Migrate Pin gateway peyments to check --- db/migrate/20210910085912_migrate_pin_payment_to_cash.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20210910085912_migrate_pin_payment_to_cash.rb diff --git a/db/migrate/20210910085912_migrate_pin_payment_to_cash.rb b/db/migrate/20210910085912_migrate_pin_payment_to_cash.rb new file mode 100644 index 0000000000..036884535b --- /dev/null +++ b/db/migrate/20210910085912_migrate_pin_payment_to_cash.rb @@ -0,0 +1,5 @@ +class MigratePinPaymentToCash < ActiveRecord::Migration[6.1] + def change + execute "UPDATE spree_payment_methods SET type = 'Spree::PaymentMethod::Check' WHERE type = 'Spree::Gateway::Pin'" + end +end