なるようになるブログ

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

rails commit log流し読み(2020/10/01)

2020/10/01分のコミットです。

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

activerecord/CHANGELOG.md


Adapt docs to recent config.log_level changes [ci skip] (#40309)

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

config.log_levelのデフォルト値についての説明を、Change the default log level from :debug to :infoの変更(production envのデフォルトを:infoに変更)に合わせて修正しています。


Add support for PostgreSQL interval datatype.

Active Recordの修正です。

Stringとして扱われていたPostgreSQLinterval datatypeを、ActiveSupport::Durationとして扱うよう修正しています。

なお既存のデータについてはRails 6.1ではStringのまま扱われるようになっています。そちらもActiveSupport::Durationとして扱いたい場合、attribute API(e.g. attribute :duration, :interval)を使用する必要があります。


Fix Getting started extends -> extend typo

rails guideのGetting Started with Railsの修正です。

extendextendsにタイポしていたのを修正しています。