diff options
author | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-13 12:42:01 -0600 |
---|---|---|
committer | Logan Hunt <loganhunt@simponic.xyz> | 2022-04-13 12:42:01 -0600 |
commit | 9d5a369ff6aa2dc3a80f104ffdc622ddf594a725 (patch) | |
tree | 78f7a8e7728a997bb02773c4623c43dc30de6328 /priv/repo/migrations/20220405071636_create_users_auth_tables.exs | |
parent | 76b083a2bd7e0ab694af3e4fb2504e3869f97113 (diff) | |
download | aggiedit-9d5a369ff6aa2dc3a80f104ffdc622ddf594a725.tar.gz aggiedit-9d5a369ff6aa2dc3a80f104ffdc622ddf594a725.zip |
Add guards on post resources
Diffstat (limited to 'priv/repo/migrations/20220405071636_create_users_auth_tables.exs')
-rw-r--r-- | priv/repo/migrations/20220405071636_create_users_auth_tables.exs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/priv/repo/migrations/20220405071636_create_users_auth_tables.exs b/priv/repo/migrations/20220405071636_create_users_auth_tables.exs index 06bde64..c7a2126 100644 --- a/priv/repo/migrations/20220405071636_create_users_auth_tables.exs +++ b/priv/repo/migrations/20220405071636_create_users_auth_tables.exs @@ -14,7 +14,7 @@ defmodule Aggiedit.Repo.Migrations.CreateUsersAuthTables do timestamps() end - create unique_index(:users, [:email]) + create unique_index(:users, [:email, :username]) create table(:users_tokens) do add :user_id, references(:users, on_delete: :delete_all), null: false |