diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-07-30 02:37:26 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-07-30 04:02:58 +0900 |
commit | b4478ae8bc37c76d0143c2ff99dfc75ef34d2234 (patch) | |
tree | 574575b62a0c199242c8ce9c670b641fb114e2d0 /activerecord/CHANGELOG.md | |
parent | 8d2e75e84cf78123d5b89e7bab727ad7499ddfa4 (diff) | |
download | rails-b4478ae8bc37c76d0143c2ff99dfc75ef34d2234.tar.gz rails-b4478ae8bc37c76d0143c2ff99dfc75ef34d2234.tar.bz2 rails-b4478ae8bc37c76d0143c2ff99dfc75ef34d2234.zip |
Preserve user supplied joins order as much as possible
Currently, string joins are always applied as last joins part, and Arel
join nodes are always applied as leading joins part (since #36304), it
makes people struggled to preserve user supplied joins order.
To mitigate this problem, preserve the order of string joins and Arel
join nodes either before or after of association joins.
Fixes #36761.
Fixes #34328.
Fixes #24281.
Fixes #12953.
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index e9a7d9f597..56a8796318 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* Preserve user supplied joins order as much as possible. + + Fixes #36761, #34328, #24281, #12953. + + *Ryuta Kamizono* + * Allow `matches_regex` and `does_not_match_regexp` on the MySQL Arel visitor. *James Pearson* |