diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2018-02-01 11:32:22 +0100 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2018-02-02 15:26:16 +0100 |
commit | 313f4d49d7aea0318bbabeae529d58076519aea0 (patch) | |
tree | e7acbe1a7321cadff6321171078b9941a966c327 /db/schema.rb | |
parent | 54a575f1bbba44573ab92dc58a4242f1ee734c5d (diff) | |
download | gitlab-ce-313f4d49d7aea0318bbabeae529d58076519aea0.tar.gz |
Add unique constraint to trending_projects#project_id.
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 01a2df13dd3..68d39784847 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1727,7 +1727,7 @@ ActiveRecord::Schema.define(version: 20180201145907) 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" |