aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-131-36/+14
* Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-2/+7
* Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2019-02-101-3/+3
* Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-0/+15
|\
| * Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-0/+15
* | Address `test_belongs_to_does_not_use_order_by` failure due to checking order...Yasuo Honda2019-02-082-3/+4
* | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-062-2/+4
|/
* Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-051-5/+35
|\
| * Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-051-5/+35
* | Revert "Merge pull request #33729 from kddeisz/plural-automatic-inverse"Ryuta Kamizono2019-02-011-12/+0
* | Add regression test for has_many through record creationRyuta Kamizono2019-02-011-0/+4
* | Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-182-7/+13
* | Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-152-0/+34
|/
* No need to handle if FrozenError is availableYasuo Honda2018-12-231-2/+2
* Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin blockRyuta Kamizono2018-12-212-37/+31
* Enable `Layout/SpaceAfterSemicolon` cop to avoid newly adding odd spacingRyuta Kamizono2018-12-131-3/+3
* Merge pull request #34609 from kamipo/delete_all_on_collection_proxyRyuta Kamizono2018-12-042-6/+16
|\
| * Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-042-6/+16
* | Reset scope after collection deleteGannon McGibbon2018-12-042-0/+64
|/
* More exercise singular association queryRyuta Kamizono2018-11-283-6/+13
* Ensure that singular association should execute limited queryRyuta Kamizono2018-11-282-5/+12
* Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2018-11-261-2/+2
* Fix handling of duplicates for `replace` on has_many-throughFlorian Ebeling2018-11-061-0/+10
* Partly revert #31819bogdanvlviv2018-10-261-26/+0
* Lazy checking whether or not values in IN clause are boundableRyuta Kamizono2018-10-241-1/+1
* Add regression test against habtm memoized singular_idsAlberto Almagro2018-10-161-0/+12
* Ensure to test that `project.developers` is ordered by `developers.name desc`Ryuta Kamizono2018-10-151-1/+1
* Merge pull request #34122 from kamipo/generate_relation_methodsRyuta Kamizono2018-10-101-0/+1
|\
| * Generate delegation methods to named scope in the definition timeRyuta Kamizono2018-10-091-0/+1
* | Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-103-0/+89
|\ \ | |/ |/|
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-103-0/+89
* | Call `define_attribute_methods` before `assert_no_queries` to address CI flak...Ryuta Kamizono2018-10-094-9/+64
* | Fix test name to add missing "set"Ryuta Kamizono2018-10-081-1/+1
* | Fix `AssociationRelation` not to set inverse instance key just like beforeRyuta Kamizono2018-10-071-0/+12
|/
* Remove `ignore_none: false` to assert no queries more strictlyRyuta Kamizono2018-10-055-20/+20
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-057-20/+20
* failing test for eager loadingMatt Jones2018-10-041-0/+5
* ActiveRecord::Associations::Preloader should not fail to preload through miss...Nikita Sokolov2018-10-021-0/+5
* Avoid extra touch queries when counter cache is updatedRyuta Kamizono2018-09-271-4/+8
* Merge pull request #31819 from bpohoriletz/masterEileen M. Uchitelle2018-09-261-0/+26
|\
| * If association is a hash-like object preloading failsBohdan Pohorilets2018-09-261-0/+26
* | Remove force parent loading when counter cache child is created/destroyedRyuta Kamizono2018-09-261-1/+5
* | Revert "Remove `counter_cache_target` which is no longer called"Ryuta Kamizono2018-09-261-1/+1
* | Update counter cache in memory if parent target is existedRyuta Kamizono2018-09-261-0/+32
|/
* Change the empty block style to have space inside of the blockRafael Mendonça França2018-09-251-1/+1
* Don't update counter cache unless the record is actually savedRyuta Kamizono2018-09-191-6/+36
* Avoid the same `foreign_key` and `counter_cache` associations on `SillyReply`Ryuta Kamizono2018-09-192-3/+3
* ActiveRecord::Associations::Preloader should preload all instances of the sam...Nikita Sokolov2018-09-161-0/+9
* Eager loading/preloading should be worked regardless of large number of recordsRyuta Kamizono2018-09-121-0/+13
* Add missing requireyuuji.yaginuma2018-08-301-0/+1