Commit c685024951b8fed73ab05039baa170859ddf7b12
1 parent
28592691
Exists in
spb-stable
and in
2 other branches
Add an index for Note#updated_at
Showing
2 changed files
with
7 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 that you check this file into your version control system. | 12 | # It's strongly recommended that you check this file into your version control system. |
13 | 13 | ||
14 | -ActiveRecord::Schema.define(version: 20140416185734) do | 14 | +ActiveRecord::Schema.define(version: 20140428105831) do |
15 | 15 | ||
16 | # These are extensions that must be enabled in order to support this database | 16 | # These are extensions that must be enabled in order to support this database |
17 | enable_extension "plpgsql" | 17 | enable_extension "plpgsql" |
@@ -200,6 +200,7 @@ ActiveRecord::Schema.define(version: 20140416185734) do | @@ -200,6 +200,7 @@ ActiveRecord::Schema.define(version: 20140416185734) do | ||
200 | add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree | 200 | add_index "notes", ["noteable_type"], name: "index_notes_on_noteable_type", using: :btree |
201 | add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree | 201 | add_index "notes", ["project_id", "noteable_type"], name: "index_notes_on_project_id_and_noteable_type", using: :btree |
202 | add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree | 202 | add_index "notes", ["project_id"], name: "index_notes_on_project_id", using: :btree |
203 | + add_index "notes", ["updated_at"], name: "index_notes_on_updated_at", using: :btree | ||
203 | 204 | ||
204 | create_table "projects", force: true do |t| | 205 | create_table "projects", force: true do |t| |
205 | t.string "name" | 206 | t.string "name" |