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:
authorAlexis Reigel <mail@koffeinfrei.org>2017-07-25 21:31:34 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:46:03 +0300
commit14551424c9fd3a9401559e6d2da34be8d1fdd45c (patch)
treea79d281a2bafb3cf0002f170a028297db95e5e4b /db/migrate/20170222111732_create_gpg_keys.rb
parent07dbd5649ad18e4473c10ef8a1a70ea863b88cc4 (diff)
add unique indexes to gpg_keys
Diffstat (limited to 'db/migrate/20170222111732_create_gpg_keys.rb')
-rw-r--r--db/migrate/20170222111732_create_gpg_keys.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/migrate/20170222111732_create_gpg_keys.rb b/db/migrate/20170222111732_create_gpg_keys.rb
index ec619394f6a..541228e8735 100644
--- a/db/migrate/20170222111732_create_gpg_keys.rb
+++ b/db/migrate/20170222111732_create_gpg_keys.rb
@@ -12,7 +12,8 @@ class CreateGpgKeys < ActiveRecord::Migration
t.text :key
- t.index :primary_keyid, length: Gitlab::Database.mysql? ? 20 : nil
+ t.index :primary_keyid, unique: true, length: Gitlab::Database.mysql? ? 20 : nil
+ t.index :fingerprint, unique: true, length: Gitlab::Database.mysql? ? 20 : nil
end
end
end