mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
add index on user_visits for reports
This commit is contained in:
parent
782dd13e78
commit
c32ea73456
@ -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…
x
Reference in New Issue
Block a user