From 2fec13d066e765cadd8e5574a8958dc15eeb40b5 Mon Sep 17 00:00:00 2001
From: Marius Bobin <mbobin@gitlab.com>
Date: Tue, 31 Oct 2023 16:34:47 +0200
Subject: [PATCH] Allow bigint helper methods in with_lock_retries block

These methods don't have retry in their implementation
and require it from outside.
---
 rubocop/cop/migration/with_lock_retries_disallowed_method.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rubocop/cop/migration/with_lock_retries_disallowed_method.rb b/rubocop/cop/migration/with_lock_retries_disallowed_method.rb
index 471d98f5416f7..e019e5bd0cf3b 100644
--- a/rubocop/cop/migration/with_lock_retries_disallowed_method.rb
+++ b/rubocop/cop/migration/with_lock_retries_disallowed_method.rb
@@ -35,6 +35,8 @@ class WithLockRetriesDisallowedMethod < RuboCop::Cop::Base
           swap_foreign_keys
           swap_indexes
           reset_trigger_function
+          cleanup_conversion_of_integer_to_bigint
+          revert_initialize_conversion_of_integer_to_bigint
         ].sort.freeze
 
         MSG = "The method is not allowed to be called within the `with_lock_retries` block, the only allowed methods are: #{ALLOWED_MIGRATION_METHODS.join(', ')}".freeze
-- 
GitLab