class AddIndexToHardwareTestLogs < ActiveRecord::Migration[6.0]
  def change
    remove_index :hardware_test_logs, :hardware_id if index_exists?(:hardware_test_logs, :hardware_id)
    add_index :hardware_test_logs, :hardware_id
  end
end
