aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* | Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2017-11-101-1/+1
* | Ensure `apply_join_dependency` for subqueries in `from` and `where`Ryuta Kamizono2017-11-101-0/+12
* | Set counter caches to correct values in fixturesBogdan Gusiev2017-11-081-9/+9
|/
* All test cases for `exists?` places in `finder_test.rb` to ease to find the t...Ryuta Kamizono2017-10-091-26/+0
* Ensure `AliasTracker` respects a custom table nameRyuta Kamizono2017-09-301-4/+8
* Add test case for `arel_attribute` with a custom tableRyuta Kamizono2017-09-271-0/+4
* Treat `Set` as an `Array` in `Relation#where`Sean Griffin2017-09-261-0/+13
* Refactor Active Record to let Arel manage bind paramsSean Griffin2017-07-241-46/+1
* Merge pull request #29867 from koic/fix_a_failed_ar_test_when_using_oracleKasper Timm Hansen2017-07-231-2/+10
|\
| * Fix a failued AR test when using OracleAdapterKoichi ITO2017-07-201-2/+10
* | Merge pull request #29732 from kirs/frozen-activerecordRafael França2017-07-211-0/+2
|\ \
| * | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
| |/
* / Revert "Extract `bind_param` and `bind_attribute` into `ActiveRecord::TestCase`"Sean Griffin2017-07-211-7/+3
|/
* Fix `JoinDependency` with using a custom tableRyuta Kamizono2017-07-181-5/+14
* Merge pull request #29801 from kamipo/extract_null_relation_testSean Griffin2017-07-171-118/+0
|\
| * Extract `NullRelationTest` from `RelationTest`Ryuta Kamizono2017-07-151-118/+0
* | Merge pull request #29799 from kamipo/remove_outdated_test_scoped_responds_to...Sean Griffin2017-07-171-8/+0
|\ \
| * | Remove outdated `test_scoped_responds_to_delegated_methods`Ryuta Kamizono2017-07-151-8/+0
| |/
* | Fix `where` with a custom tableRyuta Kamizono2017-07-181-4/+4
* | Fix `create_with` using both string and symbolRyuta Kamizono2017-07-161-1/+1
|/
* Skip query cache for in_batches and friendsEugene Kenny2017-07-061-0/+42
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Merge pull request #29405 from kamipo/locked_should_not_build_arelRafael França2017-06-281-0/+6
|\
| * Remove delegating to arel in a relationRyuta Kamizono2017-06-291-1/+1