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: locking_configuration.rb
    path of file: ./repos/gitlabhq/lib/gitlab/database/partitioning/list
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Gitlab
  module Database
    module Partitioning
      module List
        class LockingConfiguration
          attr_reader :migration_context

          def initialize(migration_context, table_locking_order:)
     
    
          def locking_statement_for(tables)
            tables_to_lock = locking_order_for(tables)

            return if tables_to_lock.empty?

            table_names = tables_to_lock.map { |name| migration_context.quote_table_name(name) }.join(', ')

            <<~SQL
              LOCK #{table_names} IN ACCESS EXCLUSIVE MODE
            SQL
          end