If the account has usage alerts, it fails to close the account with the following error: Sequel::ForeignKeyConstraintViolation #<PG::ForeignKeyViolation:"ERROR: update or delete on table \"accounts\" violates foreign key constraint \"usage_alert_user_id_fkey\" on table \"usage_alert\"\nDETAIL: Key (id)=(UUID) is still referenced from table \"usage_alert\".\n">
892 B
892 B