summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-04-15 16:40:09 +0200
committerRoger Braun <roger@rogerbraun.net>2017-04-15 16:40:09 +0200
commit03c6148bb3dfe6efe512363d2793eb233e020d50 (patch)
treec45706122ae98a0b672aba967b0c41b7d368871f /priv
parent4f7adb343c66dba0a3c6883cd9f4156fb43594d4 (diff)
downloadpleroma-03c6148bb3dfe6efe512363d2793eb233e020d50.tar.gz
pleroma-03c6148bb3dfe6efe512363d2793eb233e020d50.zip
Add user registration changeset.
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs8
1 files changed, 8 insertions, 0 deletions
diff --git a/priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs b/priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
new file mode 100644
index 000000000..361ca04da
--- /dev/null
+++ b/priv/repo/migrations/20170415141210_add_unique_index_to_email_and_nickname.exs
@@ -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