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