Add user registration changeset.

This commit is contained in:
Roger Braun 2017-04-15 16:40:09 +02:00
commit 03c6148bb3
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,8 @@
defmodule Pleroma.Repo.Migrations.AddUniqueIndexToEmailAndNickname do
use Ecto.Migration
def change do
create unique_index(:users, [:email])
create unique_index(:users, [:nickname])
end
end