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: 20180824143356_fix_recovery_diary_records_indexes.rb
    path of file: ./repos/i-diario/db/migrate
    
    the code of the file until where you have to start completion: class FixRecoveryDiaryRecordsIndexes < ActiveRecord::Migration[4.2]
  def change
    remove_index :recovery_diary_records, name: :idx_unity_id_and_classroom_id_an
    
  def change
    remove_index :recovery_diary_records, name: :idx_unity_id_and_classroom_id_and_discipline_id
    remove_index :recovery_diary_records, :unity_id
    remove_index :recovery_diary_records, :classroom_id
    remove_index :recovery_diary_records, :discipline_id

    add_index :recovery_diary_records, [:unity_id, :classroom_id, :discipline_id], where: "deleted_at IS NULL", name: :idx_unity_id_and_classroom_id_and_discipline_id
    add_index :recovery_diary_records, :unity_id, where: "deleted_at IS NULL"
    add_index :recovery_diary_records, :classroom_id, where: "deleted_at IS NULL"
    add_index :recovery_diary_records, :discipline_id, where: "deleted_at IS NULL"
  end