2023/09/20分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Dump PostgreSQL schemas as part of the schema dump.
- Ensure the SQLite3 adapter handles default functions with the
||
concatenation operator
Remove blank line in Action Mailer Basics guide
rails guideのAction Mailer Basics
の修正です。
exampleコードから空行を削除しています。
This enhancement automatically updates the Dockerfile to the desired db when using db:system:change.
railties/lib/rails/generators/database.rb
、
railties/lib/rails/generators/rails/db/system/change/change_generator.rb
の修正です。
db:system:change
を実行した際に、Dockerfile内のDB関係の依存パッケージも更新するよう修正しています。
Add CHANGELOG entry to add bigdecimal as Active Support dependency
activesupport/CHANGELOG.md
の修正です。
Active Supportのdependencyとしてbigdecimalが追加された対応のエントリーを追加しています。
dump PostgreSQL schemas as part of the schema dump
activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb
、
activerecord/lib/active_record/schema_dumper.rb
の修正です。
PostgreSQLのschemaをRailsが生成するschemaファイルに含むよう修正しています。
Ensure the SQLite3 adapter handles default functions with the ||
concatenation operator
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
SQLite3 adapterでdefault function内で||
を使用した場合に只の文字列として扱われてしまっていたのを、連結演算子として扱うよう修正しています。
change_column_default "test_models", "ruby_on_rails", -> { "('Ruby ' || 'on ' || 'Rails')" } # => デフォルトの文字列は"Ruby on Rails"になる
Improve strict_loading
documentation [ci-skip]
activerecord/lib/active_record/core.rb
のdoc、及び、rails guideのActive Record Query Interface
の修正です。
guideにstrict_loading!
の説明を追加、及び、strict_loading
のdocに、singular associationの場合の挙動やto_a
メソッドを呼び出した場合の挙動の説明などを追加しています。
Fix uninitialized constant error on Puma boot
railties/lib/rails/generators/rails/app/templates/config/puma.rb.tt
の修正です。
rails new
で生成されたpuma.rbを使用してproduction envでPumaを起動しようとすると、NameError
が発生してしまうバグがあったのを修正しています。