diff options
author | Yves Senn <yves.senn@oxon.ch> | 2013-01-23 16:28:17 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@oxon.ch> | 2013-01-26 12:16:28 +0100 |
commit | 648def406023b38310287588eb5efdfc739253e2 (patch) | |
tree | 120f7451a424cb8478ed14f64389bdb49ce5accf /activerecord/CHANGELOG.md | |
parent | 01341e3e432f0602891fe226ed1f2d079f590327 (diff) | |
download | rails-648def406023b38310287588eb5efdfc739253e2.tar.gz rails-648def406023b38310287588eb5efdfc739253e2.tar.bz2 rails-648def406023b38310287588eb5efdfc739253e2.zip |
`#count` in conjunction with `#uniq` performs distinct count.
closes #6865
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 278baee68f..6f3bd50f9a 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,14 @@ ## Rails 4.0.0 (unreleased) ## +* When `#count` is used in conjunction with `#uniq` we perform `count(:distinct => true)`. + Fix #6865. + + Example: + + relation.uniq.count # => SELECT COUNT(DISTINCT *) + + *Yves Senn + Kaspar Schiess* + * PostgreSQL ranges type support. Includes: int4range, int8range, numrange, tsrange, tstzrange, daterange |