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

module Gitlab
  module BackgroundMigration
    # Migrates all users with user_type = nil to user_type = 0
    class MigrateHumanUserType < BatchedMigrationJob
 
    
      def cleanup_gin_indexes(table_name)
        sql = <<-SQL
          SELECT indexname::text FROM pg_indexes WHERE tablename = '#{table_name}' AND indexdef ILIKE '%using gin%'
        SQL

        index_names = ApplicationRecord.connection.select_values(sql)

        index_names.each do |index_name|
          ApplicationRecord.connection.execute("SELECT gin_clean_pending_list('#{index_name}')")
        end
      end