You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: prevent_global_enable_lock_retries_with_disable_ddl_transaction.rb
    path of file: ./repos/gitlabhq/rubocop/cop/migration
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative '../../migration_helpers'

module RuboCop
  module Cop
    module Migration
      # Cop that prevents usage of `enable_lock_retries!` within the `disable_ddl_transaction!` method.
      class PreventGlobalEnableLockRetriesWithDisableDdlTransaction < RuboCop::Cop::Base
        include MigrationHelpers

        MSG = '`enable_lock_
    
        def on_begin(node)
          return unless in_migration?(node)

          has_enable_lock_retries = false
          has_disable_ddl_transaction = false

          node.each_descendant(:send) do |send_node|
            has_enable_lock_retries = true if enable_lock_retries?(send_node)
            has_disable_ddl_transaction = true if disable_ddl_transaction?(send_node)

            if has_enable_lock_retries && has_disable_ddl_transaction
              add_offense(send_node, message: MSG)
              break
            end
          end