Files
ubicloud/migrate/20240913_add_preauth_columns.rb
Burak Velioglu d7ca375ff9 Add pre-authorized money amount to payment method model
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.
2024-09-13 16:06:49 +03:00

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