diff --git a/lib/ecto/repo.ex b/lib/ecto/repo.ex index 66f1da93f6..36f0e96355 100644 --- a/lib/ecto/repo.ex +++ b/lib/ecto/repo.ex @@ -686,7 +686,7 @@ defmodule Ecto.Repo do ## Upserts - `insert_all` provides upserts (update or inserts) via the `:on_conflict` + `insert` provides upserts (update or inserts) via the `:on_conflict` option. The `:on_conflict` option supports the following values: * `:raise` - raises if there is a conflicting primary key or unique index