Update actor
This commit is contained in:
parent
b475f86313
commit
1ce7fdade0
2 changed files with 5 additions and 0 deletions
|
@ -90,6 +90,8 @@ defmodule Nulla.Models.Actor do
|
|||
:publicKey,
|
||||
:endpoints
|
||||
])
|
||||
|> unique_constraint([:preferredUsername, :domain])
|
||||
|> unique_constraint(:ap_id)
|
||||
end
|
||||
|
||||
def create_actor(attrs) when is_map(attrs) do
|
||||
|
|
|
@ -31,5 +31,8 @@ defmodule Nulla.Repo.Migrations.CreateActors do
|
|||
add :vcard_bday, :date
|
||||
add :vcard_Address, :string
|
||||
end
|
||||
|
||||
create unique_index(:actors, [:preferredUsername, :domain])
|
||||
create unique_index(:actors, [:ap_id])
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue