aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/belongs_to_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Use capture_sql helper method in testsst00122019-07-281-4/+1
* Use match? where we don't need MatchDataAkira Matsuda2019-07-271-1/+1
* Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-2/+7
* Address `test_belongs_to_does_not_use_order_by` failure due to checking order...Yasuo Honda2019-02-081-1/+2
* Ensure `StatementCache#execute` never raises `RangeError`Ryuta Kamizono2019-01-181-7/+7
* No need to handle if FrozenError is availableYasuo Honda2018-12-231-2/+2
* More exercise singular association queryRyuta Kamizono2018-11-281-3/+3
* Ensure that singular association should execute limited queryRyuta Kamizono2018-11-281-3/+6
* Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-0/+24
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-051-2/+2
* Avoid extra touch queries when counter cache is updatedRyuta Kamizono2018-09-271-4/+8
* Remove force parent loading when counter cache child is created/destroyedRyuta Kamizono2018-09-261-1/+5
* 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-191-0/+1
* Fix that association's after_touch is not called with counter cacheRyuta Kamizono2018-05-271-0/+17
* Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-271-0/+25
* Fix `belongs_to_counter_cache_after_update` to respect polymorphic type changeRyuta Kamizono2018-05-271-1/+12
* Fix `belongs_to_counter_cache_after_update` to respect custom primary key cou...Ryuta Kamizono2018-05-261-1/+7
* Fix `different_target?` to respect custom primary key counterRyuta Kamizono2018-05-261-0/+7
* Eager loading won't mutate owner recordRyuta Kamizono2018-05-251-0/+8
* Allow a belonging to object to be created from a new recordJolyon Pawlyn2018-05-011-0/+9
* Add test case that assigning belongs_to on destroyed object raises frozen errorRyuta Kamizono2018-04-271-0/+7
* Fix dependence on has_one/belongs_to relationshipsFernando Gorodscy2018-03-061-0/+24
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-24/+24
* Fix `warning: assigned but unused variable - comment`Ryuta Kamizono2017-07-251-1/+1
* Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-0/+11
|\
| * Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-0/+11
* | Reset column information after schema changedyuuji.yaginuma2017-07-201-0/+2
* | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|/
* Remove extra `.merge!(order: "id")` for `Relation#first` in testsRyuta Kamizono2017-07-131-2/+1
* 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
* Remove unused `aliased_table_name` in `Association`Ryuta Kamizono2017-06-291-1/+0
* Evaluate belongs_to :default option against the owner, not the associationGeorge Claghorn2017-04-271-0/+18
* Add :default option to belongs_to (#28453)George Claghorn2017-03-171-0/+20
* Remove deprecated force reload argument in association readersRafael Mendonça França2016-12-291-6/+0
* "Use assert_nil if expecting nil. This will fail in minitest 6."Akira Matsuda2016-12-251-1/+1
* Fix CI failure caused by #25227 and #25280 were merged at the same timeRyuta Kamizono2016-12-101-1/+1
* Merge pull request #25280 from kamipo/prevent_range_error_for_belongs_to_asso...Sean Griffin2016-12-101-0/+14
|\
| * Prevent `RangeError` for `belongs_to` associationsRyuta Kamizono2016-10-101-0/+14
* | Introduce `reload_<association>` reader for singular associations.Yves Senn2016-11-221-0/+10
* | Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-2/+2
|/
* Don't unnecessarily load a belongs_to when saving.James Coleman2016-08-261-0/+6
* Add three new rubocop rulesRafael Mendonça França2016-08-161-7/+7
* modernizes hash syntax in activerecordXavier Noria2016-08-061-51/+51
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-51/+51
* Give more context from `AssociationMismatchError`Sean Griffin2016-05-121-1/+1
* Fix counter_cache double increment bugTom Kadwill2016-04-281-0/+11
* Remove duplicated `test_` prefix [ci skip]Ryuta Kamizono2016-03-021-1/+1
* Remove legacy mysql adapterAbdelkader Boudih2015-12-171-1/+1