Adding pre-authorized money amount to payment method model. It will be used when we cancel the amount pre-authorized while charging the invoice or decide to charge amount once we decide the user is fraud.
11 lines
256 B
Ruby
11 lines
256 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:payment_method) do
|
|
add_column :preauth_amount, Integer, null: true
|
|
add_column :preauth_intent_id, :text, collate: '"C"', null: true, unique: true
|
|
end
|
|
end
|
|
end
|