add index on user_visits for reports

This commit is contained in:
Neil Lalonde 2015-07-07 14:05:38 -04:00
parent 782dd13e78
commit c32ea73456

View file

@ -0,0 +1,9 @@
class AddReportsIndexToUserVisits < ActiveRecord::Migration
def up
add_index :user_visits, [:visited_at, :mobile]
end
def down
remove_index :user_visits, [:visited_at, :mobile]
end
end