diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:06:04 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-02-25 23:06:04 +0000 |
commit | 99307b959b1c16ab1dd0400a7398019fe9d5494b (patch) | |
tree | 94a082a3c7f91c8a98596a8bcf29f2c99d4baa70 /activerecord/CHANGELOG | |
parent | 1aea4704dca570e3ef7abe69349ae2f161c7244b (diff) | |
download | rails-99307b959b1c16ab1dd0400a7398019fe9d5494b.tar.gz rails-99307b959b1c16ab1dd0400a7398019fe9d5494b.tar.bz2 rails-99307b959b1c16ab1dd0400a7398019fe9d5494b.zip |
Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index 096ae9eb4e..af0b44e3ce 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,12 @@ *SVN* +* Added calculations: Base.count, Base.average, Base.sum, Base.minimum, Base.maxmium, and the generic Base.calculate. All can be used with :group and :having. Calculations and statitics need no longer require custom SQL. #3958 [Rick Olson]. Examples: + + Person.average :age + Person.minimum :age + Person.maximum :age + Person.sum :salary, :group => :last_name + * Renamed Errors#count to Errors#size but kept an alias for the old name (and included an alias for length too) #3920 [contact@lukeredpath.co.uk] * Reflections don't attempt to resolve module nesting of association classes. Simplify type computation. [Jeremy Kemper] |