summaryrefslogtreecommitdiff
path: root/priv/repo/migrations
diff options
context:
space:
mode:
authordtluna <dtluna@openmailbox.org>2017-04-16 13:25:38 +0300
committerdtluna <dtluna@openmailbox.org>2017-04-16 13:25:38 +0300
commitce1eef9c989f0387168b48f6f61a4c1f84b3f5b5 (patch)
tree4eaec774a57163ed109a4b8bb11c467dc27ed3c6 /priv/repo/migrations
parent84c20128100ad5b074720c44a24375b809a0ce09 (diff)
parentb179b3413e7dbdafbe8a3839ba7719b9eb2a582d (diff)
downloadpleroma-ce1eef9c989f0387168b48f6f61a4c1f84b3f5b5.tar.gz
pleroma-ce1eef9c989f0387168b48f6f61a4c1f84b3f5b5.zip
Merge branch 'develop' of ssh.gitgud.io:lambadalambda/pleroma into feature/help-test
Diffstat (limited to 'priv/repo/migrations')
-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