aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
Commit message (Expand)AuthorAgeFilesLines
...
| * | Fix parent record should not get saved with duplicate children recordsSantosh Wadghule2018-05-282-0/+6
| |/
* | Fix that association's after_touch is not called with counter cacheRyuta Kamizono2018-05-271-0/+10
* | Fix inconsistent touching behavior between assigning and unassigningRyuta Kamizono2018-05-271-1/+1
|/
* Rollback parent transaction when children fails to update (#32796)Guillaume Malette2018-05-221-0/+5
* `becomes` should clear the mutation tracker which is created in `after_initia...Ryuta Kamizono2018-05-111-1/+1
* `get_value` needs to be a public methodGraham Turner2018-04-251-0/+3
* Using existing models for building multiple has_one through testsRyuta Kamizono2018-04-225-24/+1
* Fix .new with multiple through associationsSam DeCesare2018-04-094-0/+24
* Merge pull request #32355 from kamipo/delegate_to_klass_in_a_scopeRafael França2018-04-061-0/+8
|\
| * Deprecate accessibility of private/protected class methods in named scopeRyuta Kamizono2018-03-301-2/+3
| * Bring back private class methods accessibility in named scopeRyuta Kamizono2018-03-271-1/+8
* | Merge pull request #30956 from CJStadler/with-lock-changed-deprecationRafael França2018-03-281-0/+8
|/
* Add custom prefix to ActiveRecord::Store accessorsTan Huynh2018-03-231-0/+3
* Make `reflection.klass` raise if `polymorphic?` not to be misusedRyuta Kamizono2018-02-193-0/+5
* Association scope's own order should be prioritized over through scope's orderRyuta Kamizono2018-02-181-1/+2
* Deprecate update_attributes and update_attributes!Eddie Lebow2018-02-171-2/+2
* Remove unused/missing `to_money` converter in the test/docRyuta Kamizono2018-01-291-1/+1
* Avoid passing unnecessary arguments to relationDaniel Colson2018-01-241-0/+8
* Don't update counter cache when through record was not destroyedEugene Kenny2018-01-142-0/+7
* Merge pull request #23146 from piotrj/issue_18424Ryuta Kamizono2018-01-111-0/+3
|\
| * When deleting through records, take into account association conditionsPiotr Jakubowski2016-05-041-0/+3
* | Fix newly added reflection order when redefining associationRyuta Kamizono2018-01-041-2/+2
* | Merge pull request #27561 from fishbrain/count-all-in-has-many-associationRyuta Kamizono2018-01-031-0/+2
|\ \
| * | Use `count(:all)` in HasManyAssociation#count_recordsKlas Eskilson2017-02-071-0/+2
* | | Add test case for `collection_singular_ids` with symbol primary keysRyuta Kamizono2018-01-011-1/+1
* | | save attributes changed by callbacks after update_attributeMike Busch2017-12-221-0/+7
* | | Fix conflicts `counter_cache` with `touch: true` by optimistic locking.bogdanvlviv2017-12-121-1/+1
* | | Inverse instance should not be reloaded during autosave if called in validationAnmol Chopra2017-11-271-0/+4
* | | try using regexesBen Toews2017-11-097-21/+17
* | | allow table name and direction in string order argBen Toews2017-11-099-25/+29
* | | work around deprecation warnings in a bunch of testsBen Toews2017-11-0914-42/+46
* | | `scoping` should respect current class and STI constraint (#29199)Ryuta Kamizono2017-11-061-0/+4
* | | delegate scope forpavel2017-10-274-0/+5
* | | Place `MocktailDesigner` in `test/models/drink_designer.rb`Ryuta Kamizono2017-10-232-4/+3
* | | Convert ignored_columns to a list of stringAltech2017-10-201-0/+8
* | | Test `ignored_columns` value is inheritable by subclassesRyuta Kamizono2017-10-191-0/+3
* | | Joined tables in association scope doesn't use the same aliases with the pare...Ryuta Kamizono2017-10-091-0/+1
* | | Add test case for `arel_attribute` with a custom tableRyuta Kamizono2017-09-271-1/+1
* | | `has_many :through` with unscope should affect to through scopeRyuta Kamizono2017-09-071-0/+1
* | | Scope in associations should treat nil as `all`Ryuta Kamizono2017-09-041-1/+1
* | | `values[:includes]` in `reflection_scope` is not compatible with `through_scope`Ryuta Kamizono2017-09-021-1/+1
* | | `counter_cache` requires association class before `attr_readonly`Yasuo Honda2017-08-231-0/+3
* | | Clarify base_class tests on abstract STI vs concrete STIYukio Mizuta2017-08-121-1/+6
* | | Merge pull request #29848 from kamipo/fix_distinct_count_with_order_and_limitRafael França2017-07-242-34/+35
|\ \ \
| * | | Extract `Account` model to the dedicated fileRyuta Kamizono2017-07-222-34/+35
* | | | Merge pull request #29765 from lugray/fix_counter_cacheRafael França2017-07-241-0/+6
|\ \ \ \ | |/ / / |/| | |
| * | | Add test for fixed `counter_cache` double incrementLisa Ugray2017-07-191-0/+6
* | | | Use frozen-string-literal in ActiveRecordKir Shatrov2017-07-19144-10/+298
|/ / /
* | | Fix unscoping `default_scope` in STI associationsRyuta Kamizono2017-07-191-0/+1
* | | Remove deprecated code concerning non-attributes and `*_will_change!`Sean Griffin2017-07-181-1/+1