diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 18:08:10 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-12-11 18:08:10 +0000 |
commit | 175b4fa261259ab0d033482d10bb4159fee8e538 (patch) | |
tree | e1f1dba5e41177f11ffded5a505e0e7f692b8df5 /db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb | |
parent | 4eea104c69e59f6fa53c7bc15b986c69f29b60c8 (diff) | |
download | gitlab-ce-175b4fa261259ab0d033482d10bb4159fee8e538.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb')
-rw-r--r-- | db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb b/db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb new file mode 100644 index 00000000000..6f0c4bcd321 --- /dev/null +++ b/db/migrate/20191208071112_add_fingerprint_sha256_index_to_key.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddFingerprintSha256IndexToKey < ActiveRecord::Migration[5.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_concurrent_index(:keys, "fingerprint_sha256") + end + + def down + remove_concurrent_index(:keys, "fingerprint_sha256") + end +end |