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で実行するよう修正しています。