diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150313012111_create_subscribes_table.rb | 4 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/db/migrate/20150313012111_create_subscribes_table.rb b/db/migrate/20150313012111_create_subscribes_table.rb index 706cf77118c..ab0e9a2a5b5 100644 --- a/db/migrate/20150313012111_create_subscribes_table.rb +++ b/db/migrate/20150313012111_create_subscribes_table.rb @@ -8,5 +8,9 @@ class CreateSubscribesTable < ActiveRecord::Migration t.timestamps end + + add_index :subscribes, :user_id + add_index :subscribes, :issue_id + add_index :subscribes, :merge_request_id end end diff --git a/db/schema.rb b/db/schema.rb index 6afb79069e4..46663ad495b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -406,6 +406,10 @@ ActiveRecord::Schema.define(version: 20150313012111) do t.datetime "updated_at" end + add_index "subscribes", ["issue_id"], name: "index_subscribes_on_issue_id", using: :btree + add_index "subscribes", ["merge_request_id"], name: "index_subscribes_on_merge_request_id", using: :btree + add_index "subscribes", ["user_id"], name: "index_subscribes_on_user_id", using: :btree + create_table "taggings", force: true do |t| t.integer "tag_id" t.integer "taggable_id" |