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: 20240219040351_swap_columns_for_auto_canceled_by_id_between_ci_builds_and_ci_pipelines.rb
    path of file: ./repos/gitlabhq/db/post_migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class SwapColumnsForAutoCanceledByIdBetweenCiBuildsAndCiPip
    
  def index_name_for(table, columns)
    index_columns = Array.wrap(columns).map(&:to_s)

    found_index = indexes(table).find do |index|
      index.columns == index_columns
    end
    found_index&.name
  end