diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2019-03-04 11:48:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-04 11:48:04 +0100 |
commit | cbedbdef0708e00968d66feab89c86a40f2292e0 (patch) | |
tree | 19a1eb28c95df72bf3c3f18deaa83b4e0c474b1d /activerecord | |
parent | 970cb21b3a0c3c80cd235ffb2089e27dd33aed92 (diff) | |
parent | bf6d5b32e9f98e415b364f10734fa24b0f9bee5e (diff) | |
download | rails-cbedbdef0708e00968d66feab89c86a40f2292e0.tar.gz rails-cbedbdef0708e00968d66feab89c86a40f2292e0.tar.bz2 rails-cbedbdef0708e00968d66feab89c86a40f2292e0.zip |
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]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/CHANGELOG.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 0cfaf39281..42c0e6a190 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -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: |