mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
add index on user_visits for reports
This commit is contained in:
parent
782dd13e78
commit
c32ea73456
1 changed files with 9 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue