Commit e46dab1ac5770e436b6088cb893060b09f2559b4
1 parent
744814c5
Exists in
master
and in
4 other branches
add db indexes
Showing
2 changed files
with
17 additions
and
1 deletions
Show diff stats
db/schema.rb
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | # | 11 | # |
12 | # It's strongly recommended to check this file into your version control system. | 12 | # It's strongly recommended to check this file into your version control system. |
13 | 13 | ||
14 | -ActiveRecord::Schema.define(:version => 20120110180749) do | 14 | +ActiveRecord::Schema.define(:version => 20120119202326) do |
15 | 15 | ||
16 | create_table "issues", :force => true do |t| | 16 | create_table "issues", :force => true do |t| |
17 | t.string "title" | 17 | t.string "title" |
@@ -26,6 +26,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | @@ -26,6 +26,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | ||
26 | t.string "branch_name" | 26 | t.string "branch_name" |
27 | end | 27 | end |
28 | 28 | ||
29 | + add_index "issues", ["project_id"], :name => "index_issues_on_project_id" | ||
30 | + | ||
29 | create_table "keys", :force => true do |t| | 31 | create_table "keys", :force => true do |t| |
30 | t.integer "user_id" | 32 | t.integer "user_id" |
31 | t.datetime "created_at" | 33 | t.datetime "created_at" |
@@ -48,6 +50,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | @@ -48,6 +50,8 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | ||
48 | t.datetime "updated_at" | 50 | t.datetime "updated_at" |
49 | end | 51 | end |
50 | 52 | ||
53 | + add_index "merge_requests", ["project_id"], :name => "index_merge_requests_on_project_id" | ||
54 | + | ||
51 | create_table "notes", :force => true do |t| | 55 | create_table "notes", :force => true do |t| |
52 | t.text "note" | 56 | t.text "note" |
53 | t.string "noteable_id" | 57 | t.string "noteable_id" |
@@ -60,6 +64,9 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | @@ -60,6 +64,9 @@ ActiveRecord::Schema.define(:version => 20120110180749) do | ||
60 | t.string "line_code" | 64 | t.string "line_code" |
61 | end | 65 | end |
62 | 66 | ||
67 | + add_index "notes", ["noteable_id"], :name => "index_notes_on_noteable_id" | ||
68 | + add_index "notes", ["noteable_type"], :name => "index_notes_on_noteable_type" | ||
69 | + | ||
63 | create_table "projects", :force => true do |t| | 70 | create_table "projects", :force => true do |t| |
64 | t.string "name" | 71 | t.string "name" |
65 | t.string "path" | 72 | t.string "path" |