New index for posts table. interacted_at still missing

This commit is contained in:
Christophe 2012-03-30 16:58:10 +02:00 committed by Steven Hancock
parent 48571cae37
commit 4279d85776

View file

@ -0,0 +1,5 @@
class IndexesOnPosts < ActiveRecord::Migration
def change
add_index(:posts, [:id, :type, :created_at])
end
end