classCreateEnvironmentNameUniqueIndex<ActiveRecord::MigrationincludeGitlab::Database::MigrationHelpersdisable_ddl_transaction!DOWNTIME=trueDOWNTIME_REASON='Making a non-unique index into a unique index'defupremove_index:environments,[:project_id,:name]add_concurrent_index:environments,[:project_id,:name],unique: trueenddefdown