Add count index for local users.
authorLain Iwakura <lain@soykaf.club>
Thu, 30 Nov 2017 14:00:12 +0000 (15:00 +0100)
committerLain Iwakura <lain@soykaf.club>
Thu, 30 Nov 2017 14:00:12 +0000 (15:00 +0100)
priv/repo/migrations/20171130135819_add_local_index_to_user.exs [new file with mode: 0644]

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 (file)
index 0000000..25716be
--- /dev/null
@@ -0,0 +1,7 @@
+defmodule Pleroma.Repo.Migrations.AddLocalIndexToUser do
+  use Ecto.Migration
+
+  def change do
+    create index(:users, [:local])
+  end
+end