Add user registration changeset.
This commit is contained in:
parent
4f7adb343c
commit
03c6148bb3
3 changed files with 62 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue