Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20210723173132_create_index_on_environments_auto_delete_at.rb')
-rw-r--r--db/migrate/20210723173132_create_index_on_environments_auto_delete_at.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/db/migrate/20210723173132_create_index_on_environments_auto_delete_at.rb b/db/migrate/20210723173132_create_index_on_environments_auto_delete_at.rb
deleted file mode 100644
index cfaff4d0304..00000000000
--- a/db/migrate/20210723173132_create_index_on_environments_auto_delete_at.rb
+++ /dev/null
@@ -1,20 +0,0 @@
-# frozen_string_literal: true
-
-class CreateIndexOnEnvironmentsAutoDeleteAt < ActiveRecord::Migration[6.1]
- include Gitlab::Database::MigrationHelpers
-
- disable_ddl_transaction!
-
- INDEX_NAME = 'index_environments_on_state_and_auto_delete_at'
-
- def up
- add_concurrent_index :environments,
- %i[auto_delete_at],
- where: "auto_delete_at IS NOT NULL AND state = 'stopped'",
- name: INDEX_NAME
- end
-
- def down
- remove_concurrent_index_by_name :environments, INDEX_NAME
- end
-end