mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35467 from bogdanvlviv/move-changelog-entry-about-reselect-method
Move changelog entry about `reselect` method to the section of the next release [ci skip]
This commit is contained in:
commit
cbedbdef07
1 changed files with 9 additions and 9 deletions
|
@ -1,15 +1,21 @@
|
|||
* Add `reselect` method. This is a short-hand for `unscope(:select).select(fields)`.
|
||||
|
||||
Fixes #27340.
|
||||
|
||||
*Willian Gustavo Veiga*
|
||||
|
||||
* Add negative scopes for all enum values.
|
||||
|
||||
Example:
|
||||
|
||||
|
||||
class Post < ActiveRecord::Base
|
||||
enum status: %i[ drafted active trashed ]
|
||||
end
|
||||
|
||||
|
||||
Post.not_drafted # => where.not(status: :drafted)
|
||||
Post.not_active # => where.not(status: :active)
|
||||
Post.not_trashed # => where.not(status: :trashed)
|
||||
|
||||
|
||||
*DHH*
|
||||
|
||||
* Fix different `count` calculation when using `size` with manual `select` with DISTINCT.
|
||||
|
@ -382,12 +388,6 @@
|
|||
|
||||
*Federico Martinez*
|
||||
|
||||
* Add `reselect` method. This is a short-hand for `unscope(:select).select(fields)`.
|
||||
|
||||
Fixes #27340.
|
||||
|
||||
*Willian Gustavo Veiga*
|
||||
|
||||
* Add basic API for connection switching to support multiple databases.
|
||||
|
||||
1) Adds a `connects_to` method for models to connect to multiple databases. Example:
|
||||
|
|
Loading…
Reference in a new issue