summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-02-02 15:33:37 +0000
committerYorick Peterse <yorickpeterse@gmail.com>2018-02-02 15:33:37 +0000
commitf6699fbcd74670edd9a20c8d92b412f53ffe3b4c (patch)
tree9f5f56a71ca53f79bd7225801f70400c92f04f31 /db/schema.rb
parent24aa512610e142f2945ed55ac448af38fe672e51 (diff)
parent313f4d49d7aea0318bbabeae529d58076519aea0 (diff)
downloadgitlab-ce-f6699fbcd74670edd9a20c8d92b412f53ffe3b4c.tar.gz
Merge branch '32283-trending-projects-unique-constraint2' into 'master'
Add unique constraint to trending_projects#project_id. See merge request gitlab-org/gitlab-ce!16846
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 f72989ff391..c701a5f1e17 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1727,7 +1727,7 @@ ActiveRecord::Schema.define(version: 20180202111106) do
t.integer "project_id", null: false
end
- add_index "trending_projects", ["project_id"], name: "index_trending_projects_on_project_id", using: :btree
+ add_index "trending_projects", ["project_id"], name: "index_trending_projects_on_project_id", unique: true, using: :btree
create_table "u2f_registrations", force: :cascade do |t|
t.text "certificate"