2019/03/13分のコミットです。
CHANGELOGへの追加はありませんでした。
Update small typo in documentation.
actionpack/lib/action_controller/metal/helpers.rbのdocの修正です。
ActionController::Helpers moduleのdoc内のexampleコードで参照するクラス名をタイポしていたのを修正しています。
Initialize @default_timezone and @timestamp_decoder in add_pg_decoders
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rbの修正です。
@default_timezoneと@timestamp_decoderの初期化をadd_pg_decodersメソッド内で行うよう修正しています。
初期化をadd_pg_decodersメソッド内で行わないと、disconnect!の後にreconnect!した場合に古い値のままになってしまい、結果エラーになってしまう為。
Remove unused Row class in SelectManager
activerecord/lib/arel/select_manager.rbの修正です。
使用していないRowクラスを削除しています。
Update URL in RELEASING_RAILS.md [ci skip]
RELEASING_RAILS.mdの修正です。
https://git-scm.com/book へのリンクが存在しないページへのリンクになっていたのを修正しています。
Remove Marshal support from SchemaCache
activerecord/lib/active_record/connection_adapters/schema_cache.rbの修正です。
schema cacheのMarshalサポートの為のメソッドを削除しています。
Use YAML to serialize schema cacheから、schema cacheのserialize処理にはYAMLが使用されるようになり、Marshalを使用する事は無くなった為。
Modernize size calculation in Schema Cache
activerecord/lib/active_record/connection_adapters/schema_cache.rbの修正です。
sizeを計算するのにmap + injectを使用していたのを、sumメソッドを使用するよう修正しています。
Schema Cache: cache table indexes
activerecord/lib/active_record/connection_adapters/schema_cache.rbの修正です。
schema cacheでtable indexもcacheするよう修正しています。
Document int Primary Key with create_or_find_by (#35573)
activerecord/lib/active_record/relation.rbのdocの修正です。
create_or_find_byメソッドのdocに、insertに失敗した場合もprimary keyの値はインクリメントされるので、primary keyにintegerを使用している場合にintegerの上限に達しやすくなってしまう旨注記を追加しています。
Add test for runner command with environment option
railties/test/application/runner_test.rbの修正です。
rails runnerコマンドにenvironmentオプションを指定した場合のテストを追加しています。
railties/lib/rails/application/dummy_erb_compiler.rbの修正です。
rubocopの設定に違反している箇所があったのを修正しています。
[skip ci] Rails 5.1+ supports bigint primary key
activerecord/lib/active_record/relation.rbのdocの修正です。
primary keyにbigintを使用するようになったRailsのバージョンが5.0+記載されていたのですが、実際は5.1+だったのでその旨修正しています。
railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb.ttの修正です。
scaffold generatorで生成する_form.erb.ttで、タグのインデントが不足している箇所があったのを修正しています。
Fix typo s/ActiveSupport::Timezone/ActiveSupport::TimeZone/ [ci skip]
activesupport/CHANGELOG.mdの修正です。
ActiveSupport::TimeZone.allをActiveSupport::Timezone.allにタイポしていたのを修正しています。