aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_associations_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Add `exists?` and `update_all` to `CollectionProxy` for respects an associati...Ryuta Kamizono2016-07-201-0/+20
* Refactored test `HasManyAssociationsTest#test_do_not_call_callbacks_for_delet...bogdanvlviv2016-07-171-1/+2
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-2/+2
* rename to 'second_to_last' and 'third_to_last'Brian Christian2016-02-101-4/+4
* allow Array.penultimate and Array.antepenultiate access methodsBrian Christian2016-02-091-0/+10
* Typos in AR testsAkira Matsuda2016-02-041-1/+1
* Bugfix collection association #create method …Bogdan Gusiev2015-11-231-0/+6
* Except keys of `build_record`'s argument from `create_scope` in initialize_at...yui-knk2015-11-161-1/+14
* Reorder application of has_many association constraints.jbranchaud2015-10-191-0/+20
* Don't rely on subsecond precision being applied in testsSean Griffin2015-09-231-1/+3
* Merge pull request #21581 from ronakjangir47/restrict_with_errorYves Senn2015-09-171-0/+19
|\
| * `restrict_with_error` message will now respect owner’s human name in any lo...Ronak Jangir2015-09-121-0/+19
|/
* HasManyAssociation: moved half of counter cache code to reflectionBogdan Gusiev2015-09-031-1/+1
* Merge pull request #19683 from tristang/require-option-for-counter-cacheRafael Mendonça França2015-08-131-0/+21
|\
| * Add tests for associations without counter_cacheTristan Gamilis2015-04-091-0/+21
* | Use memoization for collection associations ids readerMehmet Emin İNAÇ2015-08-031-0/+8
* | `destroy` shouldn't raise when child associations fail to saveSean Griffin2015-07-241-0/+30
* | Deprecate and rename the keys for association restrict_dependent_destroyRoque Pinel2015-07-201-0/+20
* | Silence deprecation warning from force reloadPrem Sichanugrist2015-07-161-23/+23
* | Deprecate force association reload by passing truePrem Sichanugrist2015-07-151-0/+6
* | AR::RecordNotSaved & RecordNotDestroyed should include an error messageYuki Nishijima2015-05-011-1/+2
* | Rename association option :class to :anonymous_classAndrew White2015-04-211-4/+4
|/
* Fix a regression introduced by removing unnecessary db call when replacingShintaro Kojima2015-04-041-0/+2
* Reuse the CollectionAssociation#reader proxy cache if the foreign key is pres...Ben Woosley2015-03-151-0/+12
* Preserve Array#take(n) behaviour of HasManyAssociationAkira Matsuda2015-02-281-0/+13
* Merge pull request #17297 from rebyn/fix/17161-remove-objs-from-has_many-upda...Rafael Mendonça França2015-02-251-0/+25
|\
| * Add specs for adding-to/clear has_many collections’s behavior on `updated_at`Tu Hoang2014-10-301-0/+25
* | Merge branch 'rm-take' into 4-1-stableRafael Mendonça França2015-02-201-1/+29
* | Optimize none? and one? relation query methods to use LIMIT and COUNT.Eugene Gilburg2015-02-121-0/+76
* | `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
* | after_commit runs after transactions with non-joinable parentsbrainopia2015-01-161-1/+0
* | Share foreign_key_present? implementation in _has_ associationsbrainopia2014-12-311-35/+51
* | Add foreign_type option for polymorphic has_one and has_many.Ulisses Almeida + Kassio Borges2014-12-081-0/+10
* | Pass symbol as an argument instead of a blockErik Michaels-Ober2014-11-291-1/+1
* | Fix a bug where AR::RecordNotSaved loses error messagesYuki Nishijima2014-11-271-4/+13
* | Setting an association replaces records with the same id in memorySean Griffin2014-11-251-0/+64
* | Build fix when running in isolationArun Agrawal2014-11-141-0/+1
* | Merge pull request #11694 from Empact/association-bind-values-not-updated-on-...Rafael Mendonça França2014-11-101-0/+7
|\ \
| * | Fix that a collection proxy could be cached before the save of the owner, res...Ben Woosley2014-10-031-0/+7
| |/
* | default scopes should break the cache on has_many.Aaron Patterson2014-11-071-0/+26
* | copy reflection_scopes’s unscoped value when building scope for preloading,...Byron Bischoff2014-10-221-0/+8
|/
* Do not mark object as persisted after an association is savedRafael Mendonça França2014-09-051-0/+14
* Ignore SCHEMA queries when asserting no queriesAkira Matsuda2014-08-281-10/+10
* Merge pull request #15266 from dv/use_counter_cache_for_empty_callGodfrey Chan2014-07-151-0/+7
|\
| * If a counter_cache exists, use it for #empty?David Verhasselt2014-06-101-0/+7
* | Deprecate automatic counter caches on has_many :throughSean Griffin2014-06-261-4/+4
* | Always update counter caches in memory when adding recordsSean Griffin2014-06-161-0/+30
|/
* test, regression test for has_many with instance dependent scope.Yves Senn2014-05-091-0/+10
* Remove duplicated fixture additionCarlos Antonio da Silva2014-05-031-1/+1