2017-04-15 09:40:09 -05:00
|
|
|
defmodule Pleroma.Repo.Migrations.AddUniqueIndexToEmailAndNickname do
|
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def change do
|
2019-06-30 20:08:07 -05:00
|
|
|
create_if_not_exists unique_index(:users, [:email])
|
|
|
|
create_if_not_exists unique_index(:users, [:nickname])
|
2017-04-15 09:40:09 -05:00
|
|
|
end
|
|
|
|
end
|