aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/belongs_to_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* 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
* Don't rely on subsecond precision being applied in testsSean Griffin2015-09-231-1/+3
* Removed duplicate require ‘models/computer’Ronak Jangir2015-08-261-1/+0
* Merge pull request #19683 from tristang/require-option-for-counter-cacheRafael Mendonça França2015-08-131-0/+19
|\
| * Add tests for associations without counter_cacheTristan Gamilis2015-04-091-0/+19
* | use `assert_not` instead of `refute` as mentioned in our guides.Yves Senn2015-08-131-2/+2
* | Silence deprecation warning from force reloadPrem Sichanugrist2015-07-161-6/+12
* | Deprecate force association reload by passing truePrem Sichanugrist2015-07-151-0/+6
* | Merge pull request #20552 from jamesdabbs/belongs-to-polymorphic-force-reloadYves Senn2015-06-231-0/+2
|\ \
| * | Fix `undefined method uncached` for polymorphic belongs_to #20426James Dabbs2015-06-131-0/+1
* | | Merge pull request #20545 from dcrec1/20541Yves Senn2015-06-231-0/+26
|\ \ \
| * | | thrown ActiveRecord::AssociationTypeMismatch when assigning a wrong value for...Diego Carrion2015-06-221-0/+18
|/ / /
* / / raise ActiveModel::MissingAttributeError when trying to access a relationship...Diego Carrion2015-06-161-0/+4
|/ /
* | Rename association option :class to :anonymous_classAndrew White2015-04-211-2/+2
* | Batch touch parent recordsArthur Neves2015-04-081-0/+18
|/
* Require `belongs_to` by default.Josef Šimánek2015-02-211-0/+50
* Test association was eager loaded, rather than reaching into internalsSean Griffin2015-01-261-2/+2
* Build fix when running in isolationArun Agrawal2014-11-141-0/+1
* default scopes should break the cache on singulur_association.alfa-jpn2014-11-081-0/+29
* Include fixtures to prevent foreign key violation.Zuhao Wan2014-07-091-0/+2
* Re-enable foriegn key tests on MySQLGodfrey Chan2014-07-051-2/+0
* Do not change the global state of the test suiteRafael Mendonça França2014-06-271-18/+1
* Improve tests to use add_foreign_key DSLRafael Mendonça França2014-06-271-18/+11
* MySQL doesn't works with foreign keyRafael Mendonça França2014-06-271-3/+2
* Merge pull request #12450 from iantropov/masterRafael Mendonça França2014-06-271-0/+36
|\