Remove payment method ApiCustomerCredit

This commit is contained in:
Gaetan Craig-Riou
2026-03-06 14:03:09 +11:00
parent 7790259c27
commit d5dec05ab1
8 changed files with 6 additions and 102 deletions

View File

@@ -1,19 +0,0 @@
# frozen_string_literal: true
class AddApiCustomerCreditPaymentMethod < ActiveRecord::Migration[7.1]
def up
# Create payment method
execute(<<~SQL.squish
INSERT INTO spree_payment_methods ( type, environment, active, display_on, created_at, updated_at)
VALUES ('Spree::PaymentMethod::ApiCustomerCredit', '#{Rails.env}', true, 'back_end', NOW(), NOW())
SQL
)
end
def down
execute(<<~SQL.squish
DELETE FROM spree_payment_methods WHERE type = 'Spree::PaymentMethod::ApiCustomerCredit'
SQL
)
end
end