Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update documentation on upsert_all so that it is correct for Postgres
Details in rails#35519 In short, MySQL and Sqlite3 allow a record to be both inserted _and_ replaced in the same operation. Postgres (and the SQL-2003 rules for MERGE) do not. Postgres's rationale seems to be that the operation would be nondeterministic. I think it's OK for Rails users to have a different experience with this feature depending on their database; but I think you should be able to follow the examples in the docs on any database.
- Loading branch information