From 0f4bcdf8f18fb58798d19540650cfc0c5a82630c Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Wed, 10 Mar 2021 09:54:32 +0100
Subject: [PATCH] Add indexes to group activities

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 .../20210310084210_add_indexes_to_activities.exs          | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 priv/repo/migrations/20210310084210_add_indexes_to_activities.exs

diff --git a/priv/repo/migrations/20210310084210_add_indexes_to_activities.exs b/priv/repo/migrations/20210310084210_add_indexes_to_activities.exs
new file mode 100644
index 000000000..06faf47bf
--- /dev/null
+++ b/priv/repo/migrations/20210310084210_add_indexes_to_activities.exs
@@ -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