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: 20240110180956_remove_good_job_active_id_index.rb
    path of file: ./repos/danbooru/db/migrate
    
    the code of the file until where you have to start completion: # frozen_stri
    
  def change
    reversible do |dir|
      dir.up do
        if connection.index_name_exists?(:good_jobs, :index_good_jobs_on_active_job_id)
          remove_index :good_jobs, name: :index_good_jobs_on_active_job_id
        end
      end

      dir.down do
        unless connection.index_name_exists?(:good_jobs, :index_good_jobs_on_active_job_id)
          add_index :good_jobs, :active_job_id, name: :index_good_jobs_on_active_job_id
        end
      end