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
path: root/db
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-16 14:52:45 +0300
committerValery Sizov <vsv2711@gmail.com>2015-03-16 14:52:55 +0300
commit09ef69b7c8e534cedff2ca1a42b58f534e349107 (patch)
treedcccbd830331c7c7558f57cae349f18ebd0b5e7c /db
parent9698b36c1cd0808adb006593c0e8649cb42f3571 (diff)
code folding fix
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20150313012111_create_subscribes_table.rb4
-rw-r--r--db/schema.rb4
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"