なるようになるブログ

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

rails commit log流し読み(2019/10/15)

2019/10/15分のコミットです。

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

activerecord/CHANGELOG.md


Revert "Revert "Merge pull request #37296 from Shopify/db-config-pool""

Merge pull request #37443 from eileencodes/use-database-config-objects-in-railties-dbconsoleで誤ってRevertしてしまったRefactor ConnectionPool managementのRevert commitをRevertして再度マージするよう修正しています。


Adds a link to the Basic Authentication section [ci skip]

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

What to include in your Functional Testsの項のBasic Authenticationについて説明している箇所に、https://guides.rubyonrails.org/getting_started.html#basic-authentication へのリンクを追加しています。


Merge pull request #37465 from alpaca-tc/optimize_primary_keys

activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rbの修正です。

primary keyを取得するのにinformation_schema.key_column_usageを参照していたのをinformation_schema.statisticsを参照するよう修正しています。

MySQL 8.0でメタデータのストレージがdata dictionaryに変更になり、その影響でinformation_schema.key_column_usageへのアクセスが低速になった為。


[ci skip] Remove reference to legacy Rails 2.x command https://github.com/rails/rails/commit/8f554a76ba28db2ac2b6a1cd67c3afcfaa284390

raisl guideのRails Application Templatesの修正です。

yes?(question) or no?(question)の項のexampleコードで既に存在しないコマンドを使用していたのを、db:migrateを使用するよう修正しています。


Fix Action Mailbox ingress config example [ci skip]

actionmailbox/lib/rails/generators/installer.rbの修正です。

action_mailbox:installconfig/environments/production.rbに追加する内容に誤りがあった(ingressに指定出来ない値を指定していた)のを修正しています。


Update multi_json to the latest version

Gemfile.lockの修正です。

multi_json gemのバージョンを最新のバージョンに更新しています。Rubyのwarningが表示されるのを避ける為。


Add two cross links to methods in docs [skip ci]

actionpack/lib/action_controller/metal/redirecting.rbactiverecord/lib/active_record/persistence.rbのdocの修正です。

redirect_backdeleteメソッドのdoc内のメソッドの説明が、そのメソッドのdocへのリンクになるよう修正しています。