aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/calculations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* has_one supports the :dependent => :delete option which skips the typical ↵Jeremy Kemper2006-08-291-8/+8
| | | | | | callback chain and deletes the associated object directly from the database. Closes #5927. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4704@asus: jeremy | 2006-06-27 12:00:19 -0700Jeremy Kemper2006-07-081-1/+1
| | | | | | | | | | | | | | | decimal r4705@asus: jeremy | 2006-06-27 12:20:47 -0700 current_adapter? checks whether any of its arguments is the name of the current adapter class r4834@asus: jeremy | 2006-07-08 13:08:24 -0700 Room to float. r4835@asus: jeremy | 2006-07-08 13:09:18 -0700 Give lock test a few chances. r4836@asus: jeremy | 2006-07-08 13:12:05 -0700 Numeric and decimal columns map to BigDecimal instead of Float. Those with scale 0 map to Integer. Closes #5454. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4596 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add AssociationCollection#sum since the method_missing invokation has been ↵Nicholas Seckar2006-06-251-0/+4
| | | | | | shadowed by Enumerable#sum. Closes #5500. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make more Firebird tests pass (closes #5188) [kennethkunz@gmail.com]David Heinemeier Hansson2006-06-031-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that count distinct should use the selected column even when using ↵David Heinemeier Hansson2006-06-031-0/+5
| | | | | | :include (closes #5251) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4417 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow all calculations to take the :include option, not just COUNT (closes ↵Rick Olson2006-04-251-1/+10
| | | | | | #4840) [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Enable Limit/Offset in Calculations (closes #4558) [lmarlow@yahoo.com]Rick Olson2006-04-061-0/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4185 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* fix calculation tests to get around inconsistent ordering of nilsRick Olson2006-03-151-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3872 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow ordering of calculated results and/or grouped fields in calculations ↵Rick Olson2006-03-141-0/+11
| | | | | | [solo@gatelys.com] closes #4228 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3865 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make calculations typecasty! (closes #4016) [Rick Olson]David Heinemeier Hansson2006-03-011-19/+39
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3722 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Compatibility patches for calculationsDavid Heinemeier Hansson2006-02-251-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3653 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added calculations: Base.count, Base.average, Base.sum, Base.minimum, ↵David Heinemeier Hansson2006-02-251-0/+136
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