なるようになるブログ

読書感想文かrailsについてかrubyについてか

rails commit log流し読み(2023/08/10)

2023/08/10分のコミットです。

CHANGELOGにのったコミットは以下の通りです。

activerecord/CHANGELOG.md


Merge pull request #43386 from rdimartino/dirty_store

activerecord/lib/active_record/store.rbの修正です。

JSON型のcolumnに対しててActiveRecord::Storeを使用していた場合に、change trackingが正しく動作しないバグがあったのを修正しています。


Use ActiveRecord.deprecator for the alias attribute deprecation

activerecord/lib/active_record/attribute_methods.rbactiverecord/test/cases/attribute_methods_test.rbの修正です。

Active Record内でActiveModel.deprecatorを使用していたのを、ActiveRecord.deprecatorを使用するよう修正しています。


Use Pathnames for comparisons in the engine rake tasks

railties/lib/rails/tasks/engine.rakeの修正です。

engineのrake taskのpathの比較処理で、pathが/であるかどうかでチェックしてる処理があったのを、Pathnameを使用して比較処理を行うよう修正しています。/のチェックだとWindowsで動作しない為。


Merge pull request #48911 from jhbabon/fix/schema-cache-settings

activerecord/lib/active_record/railtie.rbの修正です。

config.active_record.use_schema_cache_dumpに指定した値がActiveRecord::ConnectionAdapters::SchemaReflection.use_schema_cache_dumpに設定されなくなってしまっていたのを修正しています。