aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations
Commit message (Expand)AuthorAgeFilesLines
* Allow column name with function (e.g. `length(title)`) as safe SQL stringRyuta Kamizono2019-06-101-4/+4
* Merge pull request #36429 from bogdan/fix-preloading-duplicate-recordsRyuta Kamizono2019-06-071-0/+5
|\
| * Fix preloading on AR::Relation where records are duplicated by a joinBogdan Gusiev2019-06-061-0/+5
* | Merge pull request #36426 from abhaynikam/bump-codeclimate-rubocop-versionRyuta Kamizono2019-06-061-2/+0
|\ \
| * | Bump rubocop to 0.71Abhay Nikam2019-06-061-2/+0
| |/
* / Allow quoted identifier string as safe SQL stringRyuta Kamizono2019-06-061-1/+1
|/
* Address intermittent CI failure due to non-determined sort orderRyuta Kamizono2019-05-301-6/+7
* Address intermittent CI failure in cascaded_eager_loading_test.rbRyuta Kamizono2019-05-291-12/+12
* Address intermittent CI failure due to unfilled schema columns cacheRyuta Kamizono2019-05-291-3/+3
* Give up filling schema cache before `assert_no_queries`Ryuta Kamizono2019-05-224-68/+17
* Implicit through table joins should be appeared before user supplied joinsRyuta Kamizono2019-05-191-0/+8
* Merge pull request #36284 from kamipo/fix_eager_loading_with_string_joinsRyuta Kamizono2019-05-151-0/+11
|\
| * Fix eager loading associations with string joins not to raise NoMethodErrorRyuta Kamizono2019-05-151-0/+11
* | Don't track implicit `touch` mutationRyuta Kamizono2019-05-131-5/+15
|/
* Namespace association extension modules under the owner modelJean Boussier2019-05-021-2/+2
* Make scope arity check consistent (#36134)Rob Trame2019-05-011-0/+18
* Fix merging left_joins to maintain its own `join_type` contextRyuta Kamizono2019-04-271-0/+4
* Merge pull request #32313 from lulalala/model_error_as_objectRafael França2019-04-241-6/+10
|\
| * Raise deprecation for calling `[:f] = 'b'` or `[:f] << 'b'`lulalala2019-03-311-6/+10
* | Merge pull request #35869 from abhaynikam/35866-add-touch-option-for-has-one-...Ryuta Kamizono2019-04-251-1/+38
|\ \
| * | Adds touch option to has_one associationAbhay Nikam2019-04-251-1/+38
* | | Fix sliced IN clauses to be groupedRyuta Kamizono2019-04-241-4/+4
|/ /
* | Make association builder methods privateRyuta Kamizono2019-04-241-1/+1
* | Fix `automatic_inverse_of` not to be disabled if extension block is givenRyuta Kamizono2019-04-123-10/+19
* | Merge pull request #28155 from lcreid/belongs_toRyuta Kamizono2019-04-101-0/+16
|\ \
| * | Fix circular `autosave: true`Larry Reid2018-07-231-0/+16
* | | Association loading isn't to be affected by scoping consistentlyRyuta Kamizono2019-04-051-5/+18
* | | Stash `left_joins` into `joins` to deduplicate redundant LEFT JOINRyuta Kamizono2019-04-052-1/+14
| |/ |/|
* | Fix callbacks on has_many :through associations (#33249)Ryan Kerr2019-03-301-0/+18
* | Merge pull request #35496 from bogdan/right-preloadingRyuta Kamizono2019-03-281-0/+9
|\ \
| * | Fix preloader to never reset associations in case they are already loadedBogdan Gusiev2019-03-071-0/+9
* | | Fix CI failure due to remaining tagging recordsRyuta Kamizono2019-03-261-1/+1
* | | Use `assert_queries(0)` instead of `assert_no_queries` to ignore metadata que...Yasuo Honda2019-03-261-1/+1
|/ /
* | Remove unnecessary `current_adapter?(:OracleAdapter)` for index lengthYasuo Honda2019-03-031-6/+1
* | Fix test that was broken by adding a default scope to an existing modelRafael Mendonça França2019-02-261-2/+2
* | Fix preload with nested associationsRafael Mendonça França2019-02-261-0/+9
* | Merge pull request #35247 from bogdan/fix-source-reflection-reset-codeRyuta Kamizono2019-02-202-3/+11
|\ \
| * | Fix reset of the source association when through association is loadedBogdan Gusiev2019-02-202-3/+11
* | | Fix eager loading polymorphic association with mixed table conditionsRyuta Kamizono2019-02-181-1/+13
* | | Revert "Merge pull request #35127 from bogdan/counter-cache-loading"Ryuta Kamizono2019-02-131-36/+14
* | | Fix `pluck` and `select` with custom attributesRyuta Kamizono2019-02-131-2/+7
* | | Fix random CI failure due to non-deterministic sorting orderRyuta Kamizono2019-02-101-3/+3
* | | Merge pull request #35178 from bogdan/has-many-sizeRyuta Kamizono2019-02-081-0/+15
|\ \ \ | |/ / |/| |
| * | Bugfix has_many association #size when ids reader is cached and association i...Bogdan Gusiev2019-02-081-0/+15
* | | Address `test_belongs_to_does_not_use_order_by` failure due to checking order...Yasuo Honda2019-02-082-3/+4
* | | Fix `CollectionProxy#concat` to return self by alias it to `#<<`Yuya Tanaka2019-02-062-2/+4
|/ /
* | Merge pull request #35127 from bogdan/counter-cache-loadingRyuta Kamizono2019-02-051-5/+35
|\ \
| * | Bugfix association loading behavior when counter cache is zeroBogdan Gusiev2019-02-051-5/+35
* | | Revert "Merge pull request #33729 from kddeisz/plural-automatic-inverse"Ryuta Kamizono2019-02-011-12/+0
* | | Add regression test for has_many through record creationRyuta Kamizono2019-02-011-0/+4