aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix `count(:all)` with eager loading and explicit select and orderRyuta Kamizono2019-04-041-0/+6
* Add `ActiveRecord::Relation#extract_associated` for extracting associated rec...David Heinemeier Hansson2019-03-291-0/+7
* Delegate `only` query method to relation as with `except`Ryuta Kamizono2019-03-071-0/+4
* Relax table name detection in `from` to allow any extension like INDEX hintRyuta Kamizono2019-03-011-10/+22
* Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2019-02-271-5/+5
* fixes different `count` calculation when using `size` manual `select` with DI...jvillarejo2019-02-261-0/+7
* Add test case for `unscope` with `merge`Ryuta Kamizono2019-02-241-0/+13
* Add test case for `unscope` with unknown columnRyuta Kamizono2019-02-241-0/+11
* Make `test_select_with_subquery_in_from_uses_original_table_name` work with o...yuuji.yaginuma2019-02-231-7/+2
* Skip `test_select_with_subquery_in_from_uses_original_table_name` on CIRyuta Kamizono2019-02-231-1/+1
* Skip `test_select_with_subquery_in_from_uses_original_table_name` on Buildkit...Ryuta Kamizono2019-02-221-2/+5
* Just skip `test_select_with_subquery_in_from_uses_original_table_name` on TravisRyuta Kamizono2019-02-221-0/+3
* Fix `pluck` and `select` with `from` if `from` has original table nameRyuta Kamizono2019-02-221-0/+36
* Introduce delete_by and destroy_by methods to ActiveRecord::RelationAbhay Nikam2019-02-191-0/+18
* Merge pull request #35274 from AlexBrodianoi/fix_does_not_support_reverseRyuta Kamizono2019-02-171-0/+9
|\
| * Raise ActiveRecord::IrreversibleOrderError if nulls first/last is not a singl...Finn Young2019-02-171-0/+9
* | Fix `order` with custom attributesRyuta Kamizono2019-02-171-0/+7
* | Deprecate using class level querying methods if the receiver scope regarded a...Ryuta Kamizono2019-02-151-12/+18
* | Revert "Merge pull request #35186 from kamipo/fix_leaking_scope_on_relation_c...Ryuta Kamizono2019-02-151-9/+33
|/
* Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-0/+7
* Fix `relation.create` to avoid leaking scope to initialization block and call...Ryuta Kamizono2019-02-071-3/+18
* Relation no longer respond to Arel methodsRyuta Kamizono2019-02-061-15/+0
* #create_or_find_by/!: add more tests and fix docs (#34653)Bogdan2018-12-081-0/+39
* Generate delegation methods to named scope in the definition timeRyuta Kamizono2018-10-091-0/+10
* Extract `{update,delete}_all_test.rb` from `persistence_test.rb` and `relatio...Ryuta Kamizono2018-09-161-180/+0
* Fixes #33610Darwin D Wu2018-09-111-0/+11
* Just delegate `update` with ids on a relation to `klass.update`Ryuta Kamizono2018-08-311-0/+18
* Avoid extra scoping when using `Relation#update`Ryuta Kamizono2018-07-311-0/+4
* Merge pull request #31513 from fatkodima/relation-touch_allRafael França2018-04-201-1/+46
|\
| * Add `touch_all` method to `ActiveRecord::Relation`fatkodima2018-04-131-1/+46
* | Replace `assert !` with `assert_not`Daniel Colson2018-04-191-8/+8
|/
* Merge pull request #32005 from maschwenk/ar-distinct-order-count-regressionRyuta Kamizono2018-02-271-0/+6
* Add #create_or_find_by to lean on unique constraints (#31989)David Heinemeier Hansson2018-02-141-0/+29
* Remove extra whitespaceDaniel Colson2018-01-251-14/+14
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-4/+4
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-62/+62
* Use respond_to test helpersDaniel Colson2018-01-251-5/+5
* Fix `count(:all)` with eager loading and having an order other than the drivi...Ryuta Kamizono2018-01-251-0/+6
* Avoid passing unnecessary arguments to relationDaniel Colson2018-01-241-1/+5
* Fix `count(:all)` to correctly work `distinct` with custom SELECT listRyuta Kamizono2017-12-201-0/+6
* Remove outdated comments [ci skip]Ryuta Kamizono2017-12-191-4/+0
* Using subselect for `delete_all` with `limit` or `offset`Ryuta Kamizono2017-12-191-2/+0
* Fix `scope_for_create` to do not lose polymorphic associationsRyuta Kamizono2017-12-081-0/+9
* Merge pull request #27947 from mastahyeti/unsafe_raw_sqlMatthew Draper2017-11-141-19/+19
|\
| * deal with Array arguments to #orderBen Toews2017-11-091-3/+3
| * convert order arg to string before checking if we can reverse itBen Toews2017-11-091-2/+2
| * use << instead of #concat in #reverse_sql_order because we might be working w...Ben Toews2017-11-091-1/+1
| * try using regexesBen Toews2017-11-091-26/+23
| * allow table name and direction in string order argBen Toews2017-11-091-33/+33
| * work around deprecation warnings in a bunch of testsBen Toews2017-11-091-61/+64