From 50dca016f238e802bcb4f9433b8ab06398e0bf21 Mon Sep 17 00:00:00 2001 From: Lain Iwakura Date: Thu, 30 Nov 2017 15:00:12 +0100 Subject: [PATCH] Add count index for local users. --- .../migrations/20171130135819_add_local_index_to_user.exs | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 priv/repo/migrations/20171130135819_add_local_index_to_user.exs diff --git a/priv/repo/migrations/20171130135819_add_local_index_to_user.exs b/priv/repo/migrations/20171130135819_add_local_index_to_user.exs new file mode 100644 index 000000000..25716be21 --- /dev/null +++ b/priv/repo/migrations/20171130135819_add_local_index_to_user.exs @@ -0,0 +1,7 @@ +defmodule Pleroma.Repo.Migrations.AddLocalIndexToUser do + use Ecto.Migration + + def change do + create index(:users, [:local]) + end +end