なるようになるブログ

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

rails commit log流し読み(2023/12/28)

2023/12/28分のコミットです。

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

activerecord/CHANGELOG.md


Remove SQLite production warning but leave production config disabled

activerecord/lib/active_record/railtie.rbrailties/lib/rails/generators/rails/app/templates/config/databases/sqlite3.yml.ttの修正です。

production envでSQLiteを使用した場合に、SQLiteをproductionで使用するのは推奨しない旨メッセージが出力されていたのを、出力しないよう修正しています。小さいなアプリケーション等で意図的にSQLiteをproductionで使用したいケースはあり、わざわざメッセージを出力する必要は無いだろう、ということで修正されています。


Merge pull request #50423 from p8/guides/link-to-query-matchers

rails guideのTesting Rails Applicationsの修正です。

Railsが独自に追加しているassertionの一覧のテーブルで、メソッドをAPI docにリンクしていたのを、リンク先をテーブルの外に出すよう修正しています。可読性のため、とのことです。


Update documentation for ActiveRecord persistence methods that accept +returning+ option to note that this is available for SQLite3 adapter as well

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

bulk系のメソッドのdocで、returningオプションを指定出来るadapterの一覧にSQLite3 adapterを追加しています。Add SQLite3 support for supports_insert_returning?で対応された為。