diff options
| author | dtluna <dtluna@openmailbox.org> | 2017-04-16 13:25:38 +0300 |
|---|---|---|
| committer | dtluna <dtluna@openmailbox.org> | 2017-04-16 13:25:38 +0300 |
| commit | ce1eef9c989f0387168b48f6f61a4c1f84b3f5b5 (patch) | |
| tree | 4eaec774a57163ed109a4b8bb11c467dc27ed3c6 /priv/repo/migrations | |
| parent | 84c20128100ad5b074720c44a24375b809a0ce09 (diff) | |
| parent | b179b3413e7dbdafbe8a3839ba7719b9eb2a582d (diff) | |
| download | pleroma-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.exs | 8 |
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 |
