# frozen_string_literal: trueclassCreateIndexOnAutoStopIn<ActiveRecord::Migration[6.0]includeGitlab::Database::MigrationHelpersDOWNTIME=falsedisable_ddl_transaction!defupadd_concurrent_index:environments,%i[state auto_stop_at],where: "auto_stop_at IS NOT NULL AND state = 'available'"enddefdownremove_concurrent_index:environments,%i[state auto_stop_at]endend