2020/04/30分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Deprecate allowed_index_name_length in DatabaseLimits
activerecord/lib/active_record/connection_adapters/abstract/database_limits.rb、
activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rbの修正です。
DatabaseLimitsのallowed_index_name_lengthをdeprecateにしています。
allowed_index_name_lengthはSQLite3 adapterで、一時的にリネームする際のマージンを考慮した値を返すメソッドでしたが、実際はそのマージンの考慮は不要であり、このメソッドももう不要となった為deprecateにしています。
removes require_dependency calls in ActiveStorage::Blob
activestorage/app/models/active_storage/blob.rbの修正です。
blob関連のmoduleをロードするのにrequire_dependencyで明示的にファイル名を指定していたのを、各moduleをqualified nameで指定するようにしてい、require_dependency無しでロード出来るよう対応しています。
Merge pull request #39087 from RKushnir/plus-prefix-operator-for-duration
activesupport/lib/active_support/duration.rbの修正です。
ActiveSupport::Durationでunary plusをオーバーライドして、selfを返すよう修正しています。これにより、+ 1.secondの戻り値もActiveSupport::Durationになります。
Before:
+1.second.class # => ActiveSupport::Duration (+ 1.second).class # => Integer
After:
+1.second.class # => ActiveSupport::Duration (+ 1.second).class # => ActiveSupport::Duration