commit: 50dca016f238e802bcb4f9433b8ab06398e0bf21
parent 5637d163e6eb365c69f0e79e43306156241f6494
Author: Lain Iwakura <lain@soykaf.club>
Date: Thu, 30 Nov 2017 15:00:12 +0100
Add count index for local users.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/priv/repo/migrations/20171130135819_add_local_index_to_user.exs 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