Merge pull request #49071 from HParker/backfill-relation-batching-changelog

Add changelog entry for batching using loaded relations
This commit is contained in:
Petrik de Heus 2023-08-29 10:22:31 +02:00 committed by GitHub
commit 4f33e65fc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,10 @@
* Allow batching methods to use already loaded relation if available
Calling batch methods on already loaded relations will use the records previously loaded instead of retrieving
them from the database again.
*Adam Hess*
* Deprecate `read_attribute(:id)` returning the primary key if the primary key is not `:id`. * Deprecate `read_attribute(:id)` returning the primary key if the primary key is not `:id`.
Starting in Rails 7.2, `read_attribute(:id)` will return the value of the id column, regardless of the model's Starting in Rails 7.2, `read_attribute(:id)` will return the value of the id column, regardless of the model's