From 4279d857763e25700c162b91e55c67b23645f9d0 Mon Sep 17 00:00:00 2001 From: Christophe Date: Fri, 30 Mar 2012 16:58:10 +0200 Subject: [PATCH] New index for posts table. interacted_at still missing --- db/migrate/20120330144057_indexes_on_posts.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/migrate/20120330144057_indexes_on_posts.rb diff --git a/db/migrate/20120330144057_indexes_on_posts.rb b/db/migrate/20120330144057_indexes_on_posts.rb new file mode 100644 index 000000000..523ba6c7a --- /dev/null +++ b/db/migrate/20120330144057_indexes_on_posts.rb @@ -0,0 +1,5 @@ +class IndexesOnPosts < ActiveRecord::Migration + def change + add_index(:posts, [:id, :type, :created_at]) + end +end