aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Remove legacy mysql adapterAbdelkader Boudih2015-12-171-1/+1
* Fix generated projection fields in group by queryRafael Sales2015-10-221-0/+5
* Merge pull request #20653 from repinel/allow-arel-select-countSean Griffin2015-10-201-0/+52
|\
| * Allow select with Arel and count as well as calculations with ArelRoque Pinel2015-06-301-0/+52
* | Qualify column names in calculationSoutaro Matsumoto2015-10-201-0/+19
* | Fix AC::Parameters not being sanitized for query methods.Guo Xiang Tan2015-10-021-0/+32
|/
* Use `Enumerable#sum` on `ActiveRecord::Relation` when a block is givenSean Griffin2015-06-191-0/+10
* Fix postgresql DISTINCT requirement in pluck testKevin Deisz2015-06-021-2/+2
* Allow Enumerable#pluck to take a splat.Kevin Deisz2015-05-291-0/+21
* deprecate `Relation#uniq` use `Relation#distinct` instead.Yves Senn2015-05-261-3/+6
* Fix referencing wrong aliases while joining tables of has many throughpinglamb2015-03-221-0/+11
* Allow a symbol to be passed to `attribute`, in place of a type objectSean Griffin2015-02-061-3/+3
* Don't error when grouped calculations return 0 recordsSean Griffin2015-01-281-0/+5
* Add test case for joined pluckSean Griffin2014-12-111-0/+7
* Improve the test case introduced by bd0d47eSean Griffin2014-12-111-19/+10
* Fix ProtocolViolation/bind message supplies for polymorphic + pluck or groupMiklos Fazkeas2014-12-111-0/+24
* Don't require calculations to be aliased to a columnSean Griffin2014-10-311-1/+0
* Move association definition to the model fileAkira Matsuda2014-08-281-2/+0
* Be sure that test fixtures satisfy referential integrity before calculatingAkira Matsuda2014-08-281-1/+1
* Don't use `Column` for type casting in Relation calculationsSean Griffin2014-06-181-5/+0
* Pluck should work with columns of the same name from different tablesSean Griffin2014-06-111-0/+7
* Rename `property` to `attribute`Sean Griffin2014-06-071-3/+3
* Deprecate decimal columns being automatically treated as integersSean Griffin2014-05-271-0/+4
* Ignore order when doing count.Lauro Caetano2014-04-071-0/+14
* Ensure AR #second, #third, etc. finders work through associationsJason Meller2014-01-211-2/+2
* Ensure #second acts like #first AR finderJason Meller2014-01-201-8/+10
* Fix type cast on group sum with custom expressionPaul Nikitochkin2013-12-101-0/+4
* Change test_registering_new_handlers and test_count_on_invalid_columns_raisesYasuo Honda2013-08-021-1/+1
* Remove deprecated `:distinct` option from `Relation#count`.Yves Senn2013-07-011-10/+0
* Remove fall back and column restrictions for `count`.Yves Senn2013-06-091-0/+9
* Merge pull request #10561 from Empact/nix-throwresultJon Leighton2013-06-071-0/+11
|\
| * Add coverage for the fact that pluck without an argument returns all the tabl...Ben Woosley2013-05-101-0/+5
| * Fix that #pluck wasn't rescuing ThrowResult, meaning it would blow up when fa...Ben Woosley2013-05-101-0/+6
* | Remove #sum with a block was deprecated.kennyj2013-06-011-6/+0
|/
* Handle aliased attributes in ActiveRecord::Relation.Godfrey Chan2013-05-011-0/+12
* replace #merge with relation API calls in calculations_test.Yves Senn2013-04-021-17/+13
* Deprecate the `:distinct` option for `Relation#count`.Yves Senn2013-03-151-4/+14
* rename `Relation#uniq` to `Relation#distinct`. `#uniq` still works.Yves Senn2013-03-151-1/+2
* `#count` in conjunction with `#uniq` performs distinct count.Yves Senn2013-01-261-0/+4
* fix PG typecasting errorsAaron Patterson2012-12-281-20/+7
* Deprecate Relation#sum with a block.Carlos Antonio da Silva2012-11-211-2/+4
* Revert "Yield only one argument instead of splatting."Carlos Antonio da Silva2012-11-211-16/+0
* `#pluck` can be used on a relation with `select` clause.Yves Senn2012-11-121-0/+6
* remove unused variables. Oops!Aaron Patterson2012-10-171-2/+2
* use columns hash to look up the column for the count fieldAaron Patterson2012-10-171-13/+6
* ActiveRecord: sum expression returns string '0' for no records, fixedTim Macfarlane2012-10-151-0/+4
* Fix pluck when columns/tables are reserved words.Ian Lesperance2012-09-051-2/+9
* Remove ActiveRecord::Base.to_aJon Leighton2012-08-031-1/+1
* Deprecate ActiveRecord::Base.scoped.Jon Leighton2012-07-271-13/+13
* ActiveRecord::Base.all returns a Relation.Jon Leighton2012-07-271-1/+1