mark ap_id unique_constraint

This commit is contained in:
rinpatch 2019-02-19 13:52:15 +03:00
parent 1ce1b7b58d
commit 109b01a631
1 changed files with 1 additions and 0 deletions

View File

@ -237,6 +237,7 @@ def register_changeset(struct, params \\ %{}, opts \\ []) do
changeset
|> put_change(:password_hash, hashed)
|> put_change(:ap_id, ap_id)
|> unique_constraint(:ap_id)
|> put_change(:following, [followers])
|> put_change(:follower_address, followers)
else