From f1e6040c262d88569fd43907f3a84511db30286f Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Mon, 20 Jan 2025 18:30:31 +0100 Subject: [PATCH] fix(migration): Payment status migration (#3080) The issue is related to the merge of https://github.com/getlago/lago-api/pull/2986 created before the migration but turning the `PENDING_STATUSES` constants to `PROCESSING_STATUSES` --- db/migrate/20241220095049_backfill_payable_payment_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20241220095049_backfill_payable_payment_status.rb b/db/migrate/20241220095049_backfill_payable_payment_status.rb index 9d1979c6810..406b0a20307 100644 --- a/db/migrate/20241220095049_backfill_payable_payment_status.rb +++ b/db/migrate/20241220095049_backfill_payable_payment_status.rb @@ -43,7 +43,7 @@ def change provider_class = provider_type.constantize payments = Payment.joins(:payment_provider) - .where(payment_providers: {type: provider_type}, status: provider_class::PENDING_STATUSES) + .where(payment_providers: {type: provider_type}, status: provider_class::PROCESSING_STATUSES) payments.update_all(payable_payment_status: :pending) # rubocop:disable Rails/SkipsModelValidations payments = Payment.joins(:payment_provider)