feat(chat): chat name is unique
This commit is contained in:
@@ -19,5 +19,6 @@ defmodule Slax.Chat.Room do
|
||||
message: "can only contain lowercase letters, numbers, and dashes"
|
||||
)
|
||||
|> validate_length(:topic, max: 200)
|
||||
|> unique_constraint(:name)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user