Something like this?:
Move everything into a single changeset?
def changeset(%User{} = user, comment) do
user
|> cast(%{}, [:username, :email, :password, :role, :confirmed, :attempts, :locked])
|> validate_required([:username, :email, :password, :role, :confirmed, :attempts, :locked])
|> put_assoc(:comment, comment)
end
Well it doesn’t yeld any errors, so probably this is what you ,meant by






















