forked from potsda.mn/mobilizon
Add indexes to group activities
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
930a1f9b9f
commit
0f4bcdf8f1
|
@ -0,0 +1,8 @@
|
|||
defmodule Mobilizon.Storage.Repo.Migrations.AddIndexesToActivities do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
create(index(:activities, [:group_id], name: "activity_group_id"))
|
||||
create(index(:activities, [:author_id, :type], name: "activity_filter"))
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue