aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_one_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* Follow-up to #10776Robin Dupret2015-02-261-1/+1
* `WhereClause#predicates` does not need to be publicSean Griffin2015-01-271-4/+4
* Remove all references to `where_values` in testsSean Griffin2015-01-251-4/+4
* Extracted `ActiveRecord::AttributeAssignment` to `ActiveModel::AttributesAssi...Bogdan Gusiev2015-01-231-1/+1
* Fix warning: assigned but unused variable - postRyuta Kamizono2014-12-311-1/+1
* Fix error message when trying to create an associated recordRafael Mendonça França2014-12-301-0/+8
* Share foreign_key_present? implementation in _has_ associationsbrainopia2014-12-311-0/+6
* Add foreign_type option for polymorphic has_one and has_many.Ulisses Almeida + Kassio Borges2014-12-081-0/+11
* Fix a bug where AR::RecordNotSaved loses error messagesYuki Nishijima2014-11-271-3/+10
* Build fix when running in isolationArun Agrawal2014-11-141-0/+1
* Ignore SCHEMA queries when asserting no queriesAkira Matsuda2014-08-281-1/+1
* Associations now raise `ArgumentError` on name conflicts.Lauro Caetano2014-01-311-0/+10
* `has_one` and `belongs_to` accessors don't add ORDER BY to the queries anymore.Rafael Mendonça França2014-01-211-0/+7
* Raise `ArgumentError` when `has_one` is used with `counter_cache`Godfrey Chan2013-11-291-0/+8
* Fix test name [ci skip]Carlos Antonio da Silva2013-11-141-1/+1
* Fixes problem with replacing has_one association record with itselfDenis Redozubov2013-11-111-2/+16
* Save association when primary key is manually setlaurocaetano2013-10-241-0/+11
* Avoid empty transaction from setting has_one association on new record.Dylan Thacker-Smith2013-09-111-0/+2
* Dropped deprecated option `:restrict` for `:dependent` in associationsNeeraj Singh2013-07-031-16/+0
* Fix #8856 Ensure has_one association=(associate) triggers save.Chris Thompson2013-04-301-0/+16
* Revert "Merge pull request #8989 from robertomiranda/use-rails-4-find-by"Guillermo Iguaran2013-01-181-2/+2
* User Rails 4 find_byrobertomiranda2013-01-181-2/+2