Endon.find_or_create_by
You're seeing just the function
find_or_create_by
, go back to Endon module for more information.
Specs
find_or_create_by(where_conditions()) :: Ecto.Schema.t()
Find or create a record based on specific attributes values.
Similar to find_by
, except that if a record cannot be found with the given attributes
then a new one will be created.
Returns {:ok, struct}
if one is found/created, or {:error, changeset}
if there is
a validation error.