Commit c685024951b8fed73ab05039baa170859ddf7b12

Authored by Jacob Vosmaer
1 parent 28592691

Add an index for Note#updated_at

db/migrate/20140428105831_add_notes_index_updated_at.rb 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +class AddNotesIndexUpdatedAt < ActiveRecord::Migration
  2 + def change
  3 + add_index :notes, :updated_at
  4 + end
  5 +end
@@ -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"