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/20190225160301_add_runner_tokens_indexes.rb')
-rw-r--r--db/migrate/20190225160301_add_runner_tokens_indexes.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/db/migrate/20190225160301_add_runner_tokens_indexes.rb b/db/migrate/20190225160301_add_runner_tokens_indexes.rb
deleted file mode 100644
index 3230c2809de..00000000000
--- a/db/migrate/20190225160301_add_runner_tokens_indexes.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-# frozen_string_literal: true
-
-class AddRunnerTokensIndexes < ActiveRecord::Migration[5.0]
- include Gitlab::Database::MigrationHelpers
-
- DOWNTIME = false
-
- disable_ddl_transaction!
-
- # It seems that `ci_runners.token_encrypted` and `projects.runners_token_encrypted`
- # are non-unique
-
- def up
- add_concurrent_index :ci_runners, :token_encrypted
- add_concurrent_index :projects, :runners_token_encrypted
- add_concurrent_index :namespaces, :runners_token_encrypted, unique: true
- end
-
- def down
- remove_concurrent_index :ci_runners, :token_encrypted
- remove_concurrent_index :projects, :runners_token_encrypted
- remove_concurrent_index :namespaces, :runners_token_encrypted, unique: true
- end
-end