aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #34609 from kamipo/delete_all_on_collection_proxyRyuta Kamizono2018-12-041-3/+13
|\
| * Ensure that `delete_all` on collection proxy returns affected countRyuta Kamizono2018-12-041-3/+13
* | Reset scope after collection deleteGannon McGibbon2018-12-041-0/+32
|/
* Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2018-11-261-2/+2
* 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-101-0/+42
|\ \ | |/ |/|
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-0/+42
* | Call `define_attribute_methods` before `assert_no_queries` to address CI flak...Ryuta Kamizono2018-10-091-6/+43
* | 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-051-12/+12
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-051-6/+6
* 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
* Remove unused requiresRyuta Kamizono2018-08-251-3/+1
* Add test case to test enum in has_manyRich2018-08-251-0/+22
* Add method_call_assertions and use them instead of Mochautilum2018-08-131-12/+20
* Fix `collection.create` to could be rolled back by `after_save`Ryuta Kamizono2018-06-071-0/+11
* Fix `CustomCops/AssertNot` to allow it to have failure messageRyuta Kamizono2018-05-131-1/+1
* Merge pull request #32727 from utilum/assert_dont_expectsRafael França2018-04-271-9/+13
|\
| * assert_calledutilum2018-04-261-3/+4
| * assert_not_calledutilum2018-04-261-6/+9
* | Ensure that `ids_reader` respects dirty target whether target is loaded or notRyuta Kamizono2018-04-271-2/+2
* | Loaded associations should not run a new query when size is calledGraham Turner2018-04-261-0/+74
|/
* Add test case for `collection.size` with dirty targetRyuta Kamizono2018-04-211-0/+10
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-2/+2
* Fix intermittent CI failure due to setting explicit `person.id = 10`Ryuta Kamizono2018-03-301-4/+0
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-0/+7
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-6/+6
* Remove extra whitespaceDaniel Colson2018-01-251-14/+14
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-10/+10
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-64/+64
* Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+8
|\
| * Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+8
* | Bugfix foreign key replacement in inverse associationBogdan Gusiev2017-12-271-0/+9
* | Enable `Layout/SpaceBeforeComma` rubocop rule, and fixed moreRyuta Kamizono2017-12-121-1/+1
* | Set counter caches to correct values in fixturesBogdan Gusiev2017-11-081-1/+1
* | Add deterministic sorting order for `test_taking_with_a_number`Ryuta Kamizono2017-08-181-1/+9
* | Fix `reflection.association_primary_key` for `has_many` associationsRyuta Kamizono2017-08-131-3/+14
* | Merge remote-tracking branch 'origin/master' into unlock-minitestRafael Mendonça França2017-08-011-30/+29
|\ \
| * | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
| * | Remove extra `.merge!(order: "id")` for `Relation#first` in testsRyuta Kamizono2017-07-131-30/+27
* | | Merge branch 'master' into unlock-minitestKasper Timm Hansen2017-07-151-2/+57
|\| |
| * | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
| * | Merge pull request #29540 from kirs/rubocop-frozen-stringMatthew Draper2017-07-021-0/+1
| |\ \
| | * | Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
| * | | Merge pull request #29631 from kamipo/should_be_clear_association_idsMatthew Draper2017-07-011-0/+5
| |\ \ \
| | * | | Should be clear `@association_ids` when joined newly associated recordRyuta Kamizono2017-06-301-0/+5
| | |/ /
| * | | Merge pull request #28808 from fschwahn/fix-polymorphic-automic-inverseMatthew Draper2017-07-011-0/+14
| |\ \ \ | | |/ / | |/| |