diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-25 21:31:34 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 16:46:03 +0300 |
commit | 14551424c9fd3a9401559e6d2da34be8d1fdd45c (patch) | |
tree | a79d281a2bafb3cf0002f170a028297db95e5e4b /db/migrate/20170222111732_create_gpg_keys.rb | |
parent | 07dbd5649ad18e4473c10ef8a1a70ea863b88cc4 (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.rb | 3 |
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 |