rails commit log流し読み(2024/08/23) (original) (raw)
2024/08/23分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Add support for dumping table inheritance and native partitioning table definitions for PostgeSQL adapter
- Support use of alternative database interfaces via the database_cli ActiveRecord configuration option.
No need to call tap since replace_serialized_subtype returns the callee.
activerecord/lib/active_record/encryption/encryptable_record.rb
の修正です。
encrypt_attribute
メソッド内のsubtypeに対するEncryptedAttributeType
から不要なtap
処理を削除しています。
Revert "Merge pull request #49769 from jonathanhefner/active_record-enum-non-column-backed"
Raise when defining an enum not backed by a database columnで出来なくなったDBのカラムで定義されていないattributeに対するenumの定義を再度出来るよう修正した、Support non-column-backed attributes for enumをRevertしています。この対応の影響で、eager_load
がtrueの場合にDBに存在するcolumnに対するenumが存在していない、とみなされてしまうリグレッションが発生した為。
Update the description of when SQLite might make sense as the configured database [ci skip] (#52639)
rails guideのConfiguring Rails Applications
の修正です。
Configuring an SQLite3 Database
セクション内のSQLite3の設定について記載している箇所で、Railsは本番環境のワークロードに合わせてSQLiteを構成するようにしている旨説明を修正しています。
support dumping PostgreSQL partitioning options to schema.rb
activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
の修正です。
PostgeSQL adapterで、table inheritance及びpartitioning table definitionsをschemaファイルに出力するよう修正しています。
Allow use of alternative database interfaces
Active Recordの修正です。
dbconsole
で使用する各RDBMSのCLIツールがコード内で固定になっていた(PostgreSQLはpsql
、MySQLはmysql
)のを、configで使用するCLIを指定出来るよう修正しています。
config.active_record.database_cli = { postgresql: "pgcli", mysql: %w[ mycli mysql ] }
Allow URI::RFC3986_PARSER warnings
activesupport/lib/active_support/testing/strict_warnings.rb
の修正です。
URI::RFC3986_PARSER
warningを無視するよう修正しています。Warn compatibility methods in RFC3986_PARSERでデフォルトのparserがURI::RFC2396_PARSERに変更になり、
URI::RFC3986_PARSERの一部メソッドがobsoletedになった(
URI::RFC2396_PARSER`の同名のメソッドが使う必要がある)のですが、古いRuby向けのサポートをどうするか、という問題がある為、一旦無視するようにしています。
Fix sqlite3 link http://www.sqlite.org to https://www.sqlite.org
rails guideのConfiguring Rails Applications
の修正です。
www.sqlite.orgへのリンクのプロトコルをhttpsに変更しています。
ActiveSupport::ErrorReporter#report assigns a backtrace to unraised exceptions
activesupport/lib/active_support/error_reporter.rb
の修正です。
ActiveSupport::ErrorReporter#report
メソッドでraiseされなかったexceptionに対してもbacktraceを設定するよう修正しています。
Fixed significant styling issue
rails guideの修正です。
guide内のヒントとメモブロックの中央揃えの位置が、dark modeの場合ずれていたのを修正しています。
Unpin sqlite3 version in bug_report_templates
bug report templatesの修正です。
現在は不要になったsqlite3
gemのバージョン指定を削除しています。
Require testing/parallelize_executor in testing/isolation
activesupport/lib/active_support/testing/isolation.rb
の修正です。
不足していたrequireを追加しています。