aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_one_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #36708 from rails/has-one-polymorphic-touch-dont-cache-ass...Kasper Timm Hansen2019-07-311-0/+18
|\
| * Polymorphic has_one touch: Reset association cache result after create transa...Kasper Timm Hansen2019-07-311-0/+18
* | Use capture_sql helper method in testsst00122019-07-281-4/+1
* | Use match? where we don't need MatchDataAkira Matsuda2019-07-271-1/+1
|/
* Give up filling schema cache before `assert_no_queries`Ryuta Kamizono2019-05-221-4/+1
* Adds touch option to has_one associationAbhay Nikam2019-04-251-1/+38
* Address `test_belongs_to_does_not_use_order_by` failure due to checking order...Yasuo Honda2019-02-081-2/+2
* Refs #28025 nullify *_type column on polymorphic associations on :nu… (#28...Laerti2019-01-151-0/+18
* More exercise singular association queryRyuta Kamizono2018-11-281-3/+3
* Ensure that singular association should execute limited queryRyuta Kamizono2018-11-281-2/+6
* Merge pull request #34094 from christophemaximin/fix-activerecord-clearing-of...Ryuta Kamizono2018-10-101-0/+23
|\
| * Clear QueryCache when reloading associationsChristophe Maximin2018-10-101-0/+23
* | Call `define_attribute_methods` before `assert_no_queries` to address CI flak...Ryuta Kamizono2018-10-091-3/+7
|/
* Remove `ignore_none: false` to assert no queries more strictlyRyuta Kamizono2018-10-051-1/+1
* Use `assert_no_queries` not to ignore BEGIN/COMMIT queriesRyuta Kamizono2018-10-051-3/+3
* Improve test case to test enum correctlyRich2018-08-201-0/+3
* Replace `assert !` with `assert_not`Daniel Colson2018-04-191-1/+1
* Autocorrect `refute` RuboCop violationsDaniel Colson2018-04-031-1/+1
* Fix dependence on has_one/belongs_to relationshipsFernando Gorodscy2018-03-061-0/+24
* Remove extra whitespaceDaniel Colson2018-01-251-1/+1
* Use assert_empty and assert_not_emptyDaniel Colson2018-01-251-2/+2
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-15/+15
* Show the failed queries in `test_has_one_does_not_use_order_by`Ryuta Kamizono2017-10-141-1/+2
* Load both `:authors` and `:author_addresses` to keep data integrityYasuo Honda2017-08-221-1/+1
* Add `:authors` fixture to address two random failures at HasOneAssociationsTestYasuo Honda2017-08-061-1/+1
* Merge pull request #29855 from lugray/has_one_destroyed_by_associationRafael França2017-07-211-0/+34
|\
| * Match destroyed_by_association for has_one to has_manyLisa Ugray2017-07-211-0/+34
* | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-191-0/+2
|/
* 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
* Raise on create for singular association when parent is unpersistedAlex Kitchens2017-06-081-0/+9
* Correct spellingBenjamin Fleischer2017-02-051-2/+2
* Reduce string objects by using \ instead of + or << for concatenating stringsAkira Matsuda2017-01-121-1/+1
* Add failing test for where with joinsNick LaMuro2017-01-061-0/+17
* Remove deprecated force reload argument in association readersRafael Mendonça França2016-12-291-6/+0
* Remove deprecated i18n scopes in Active RecordRafael Mendonça França2016-12-291-19/+0
* Introduce `reload_<association>` reader for singular associations.Yves Senn2016-11-221-0/+10
* Allow `autosave: true` to be used with inverse ofSean Griffin2016-11-011-1/+1
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-1/+1
* Add three new rubocop rulesRafael Mendonça França2016-08-161-4/+4
* modernizes hash syntax in activerecordXavier Noria2016-08-061-37/+37
* applies new string literal convention in activerecord/testXavier Noria2016-08-061-59/+59
* Fix `has_one` `enum` `where` queriesJon Moss2016-05-261-0/+18
* Merge pull request #21581 from ronakjangir47/restrict_with_errorYves Senn2015-09-171-0/+18
|\
| * `restrict_with_error` message will now respect owner’s human name in any lo...Ronak Jangir2015-09-121-0/+18
|/
* Only nullify persisted has_one target associationsAgis-2015-08-241-0/+8
* Deprecate and rename the keys for association restrict_dependent_destroyRoque Pinel2015-07-201-0/+19
* Silence deprecation warning from force reloadPrem Sichanugrist2015-07-161-1/+2
* Deprecate force association reload by passing truePrem Sichanugrist2015-07-151-0/+6
* Closes rails/rails#18864: Renaming transactional fixtures to transactional testsBrandon Weiss2015-03-161-1/+1