Skip to content

Commit

Permalink
Fixed #337 Added index on Versions created_at
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Sep 16, 2014
1 parent 0729b37 commit f6116f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20140916011927_add_created_at_index_on_versions.rb
@@ -0,0 +1,5 @@
class AddCreatedAtIndexOnVersions < ActiveRecord::Migration
def change
add_index :versions, :created_at
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended to check this file into your version control system.

ActiveRecord::Schema.define(:version => 20131207033244) do
ActiveRecord::Schema.define(:version => 20140916011927) do

create_table "account_contacts", :force => true do |t|
t.integer "account_id"
Expand Down Expand Up @@ -440,6 +440,7 @@
t.string "related_type"
end

add_index "versions", ["created_at"], :name => "index_versions_on_created_at"
add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
add_index "versions", ["whodunnit"], :name => "index_versions_on_whodunnit"

Expand Down

0 comments on commit f6116f8

Please sign in to comment.