aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/calculations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-6/+6
* improve error message when include assertions failMichael Grosser2016-09-161-4/+4
* Add three new rubocop rulesRafael Mendonça França2016-08-161-2/+2
* modernizes hash syntax in activerecordXavier Noria2016-08-061-18/+18
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-88/+88
* Fix Active Record test failureRyuta Kamizono2016-07-121-3/+2
* Always prefer class types to query types when casting `group`Sean Griffin2016-07-111-0/+6
* Forward ActiveRecord::Relation#count to Enumerable#count if block givenErik Michaels-Ober2016-03-191-0/+4
* remove args from assert_nothing_raised in testsTara Scherner de la Fuente2016-02-221-2/+2
* Remove legacy mysql adapterRyuta Kamizono2015-12-211-2/+2
* 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