Skip to content

Commit

Permalink
Move changelog entry about reselect method to the section of the ne…
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdanvlviv committed Mar 4, 2019
1 parent 970cb21 commit bf6d5b3
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions activerecord/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit bf6d5b3

Please sign in to comment.