2026/05/31分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
activerecord/CHANGELOG.md
- Preserve IPv6 prefix when dumping PostgreSQL
cidr/inetdefaults toschema.rb. - Respect
schema_search_pathonrails dbconsolefor PostgreSQL
actionpack/CHANGELOG.md
Merge pull request #57438 from 55728/fix-cidr-schema-dump-ipv6-prefix
activerecord/lib/active_record/connection_adapters/postgresql/oid/cidr.rbの修正です。
`cidr / inet columnをschema.rbに出力する際に、 subnet maskが32の場合出力しないようになっていたのを、valueがipv6かどうかをチェックするようにして、ipv4の場合は32をipv6の場合は128の場合のみ出力を省略するよう修正しています。
Respect schema_search_path on rails dbconsole for Postgres
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbの修正です。
rails dbconsoleでpsqlを実行する際に、config/database.ymlにschema_search_pathが定義されている場合に、psqlにその値を指定するよう修正しています。
Rate limiting calls cache_key on by: if the object responds to it
actionpack/lib/action_controller/metal/rate_limiting.rbの修正です。
rate_limitのbyオプションに、cache_keyメソッドが定義されているオブジェクトを渡せるよう修正しています。
class CommentsController < ApplicationController # Cache key in the store would be `rate-limit:comments:user/1` rate_limit to: 2, within: 2.seconds, by: -> { current_user } end
Fix assert_part/assert_no_part for body parts nested under an attachment
actionmailer/lib/action_mailer/test_case.rbの修正です。
messageがhtml、textのbody両方持っている、かつ、attachmentが指定されている場合に、assert_part/assert_no_partで正しく値のチェックが出来ないバグがあったのを修正しています。