2020/09/09分のコミットです。
CHANGELOGへの追加はありませんでした。
Properly support reverse_order on relations with nulls_first or nulls_last calls
activerecord/lib/arel/nodes/ordering.rbの修正です。
nulls_first / nulls_last + reverse_orderを指定した場合に、NULLSの指定がreverseされるよう修正しています。
Merge pull request #40125 from jhawthorn/actionview_test_case_isolation
actionpack/lib/action_controller/metal.rb、
actionview/lib/action_view/test_case.rbの修正です。
ActionView::TestCaseで使用するテスト用のcontrollerがuniqueになるよう修正しています。元々はuniqueになっておらず、テストで追加したhelper methodが異なるテストで参照出来てしまう、という問題があった為。
Merge pull request #40202 from KapilSachdev/fix/revert_40178
delete_allとfromをセットで使用した場合にエラーとなるよう修正した、 Raise error when from is used with delete_all.をRevertしています。fromでindex hintを指定して、delete_allで削除処理を実行する、というケースがある為。
Add regression test for https://github.com/rails/rails/pull/40178#issuecomment-688222844
activerecord/test/cases/relation/delete_all_test.rbの修正です。
index hint + delete_allを実行した場合のテストを追加しています。
Test calculation with from for all adapters
activerecord/test/cases/calculations_test.rbの修正です。
calculation function + fromのテストがMySQL2 adapterでのみ実行されていたのを、全てのadapterで実行するよう修正しています。