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-26 10:30:33 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-07-27 16:46:04 +0300
commit4e53131f7dceb001368446ef3e7eb3747cfcec02 (patch)
tree922f4fdb0f766b864673aa3096b9ef44b7719656 /db/schema.rb
parentfef030c23dff6f3b11b0e6bfd4c9443106375de1 (diff)
add unique index for gpg_signatures#commit_sha
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 2cc8b1624c0..63030350c5d 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -565,7 +565,7 @@ ActiveRecord::Schema.define(version: 20170725145659) do
t.text "gpg_key_user_email"
end
- add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", using: :btree
+ add_index "gpg_signatures", ["commit_sha"], name: "index_gpg_signatures_on_commit_sha", unique: true, using: :btree
add_index "gpg_signatures", ["gpg_key_id"], name: "index_gpg_signatures_on_gpg_key_id", using: :btree
add_index "gpg_signatures", ["gpg_key_primary_keyid"], name: "index_gpg_signatures_on_gpg_key_primary_keyid", using: :btree
add_index "gpg_signatures", ["project_id"], name: "index_gpg_signatures_on_project_id", using: :btree