Skip to content
代码片段 群组 项目
未验证 提交 2fec13d0 编辑于 作者: Marius Bobin's avatar Marius Bobin
浏览文件

Allow bigint helper methods in with_lock_retries block

These methods don't have retry in their implementation
and require it from outside.
上级 e6cd81b9
No related branches found
No related tags found
无相关合并请求
...@@ -35,6 +35,8 @@ class WithLockRetriesDisallowedMethod < RuboCop::Cop::Base ...@@ -35,6 +35,8 @@ class WithLockRetriesDisallowedMethod < RuboCop::Cop::Base
swap_foreign_keys swap_foreign_keys
swap_indexes swap_indexes
reset_trigger_function reset_trigger_function
cleanup_conversion_of_integer_to_bigint
revert_initialize_conversion_of_integer_to_bigint
].sort.freeze ].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 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
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册