diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-31 16:36:28 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-11-17 15:10:12 -0200 |
commit | bde0202693508aa9eb3ce76876b1c64120d51ef3 (patch) | |
tree | e7844d9b4f3756bfdaa84a4ef334990f49bd5781 /db/schema.rb | |
parent | 731946bad2df5b2b369db53d965061d71bf6be77 (diff) | |
download | gitlab-ce-bde0202693508aa9eb3ce76876b1c64120d51ef3.tar.gz |
Add unique index to subscriptions on subscribable and user and project
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 fcdb5ab7dde..e3a4cf9b96d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1055,7 +1055,7 @@ ActiveRecord::Schema.define(version: 20161109150329) do t.integer "project_id" end - add_index "subscriptions", ["subscribable_id", "subscribable_type", "user_id"], name: "subscriptions_user_id_and_ref_fields", unique: true, using: :btree + add_index "subscriptions", ["subscribable_id", "subscribable_type", "user_id", "project_id"], name: "index_subscriptions_on_subscribable_and_user_id_and_project_id", unique: true, using: :btree create_table "taggings", force: :cascade do |t| t.integer "tag_id" |