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