2022/10/26分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Adapter
#executemethods now accept anallow_retryoption. When set totrue, the SQL statement will be retried, up to the database's configuredconnection_retriesvalue, upon encountering connection-related errors. - Adds
validateto foreign keys and check constraints in schema.rb
Merge pull request #46273 from adrianna-chang-shopify/ac-execute-takes-allow-retry
Active Recordの修正です。
executeメソッドに、connection関連のエラーが発生した場合に接続し直してSQLの実行をリトライするかどうかを指定する為のallow_retryオプションを追加しています。trueを指定した場合、最大configのconnection_retriesの値までリトライするようになっています。
fix typo in pull request template [ci-skip]
.github/pull_request_template.mdの修正です。
コメント内のタイポを修正しています。
Add multi-db support for db:version tasks
activerecord/lib/active_record/railties/databases.rakeの修正です。
複数DB向けのdb:version task(e.g. db:version:animals)を生成するよう修正しています。
Active Recordの修正です。
Active Record専用のdeprecator(ActiveRecord.deprecator)を追加、及び、Active RecordでActiveSupport::Deprecationを使用していた箇所を、ActiveRecord.deprecatorを使用するよう修正しています。ActiveRecord.deprecatorはRails.application.deprecators追加されるようになっており、Rails.application.deprecators[:active_record]で参照出来るようになっています。
Fix clear_all_connections! deprecation warning
actioncable/test/subscription_adapter/postgresql_test.rbの修正です。
deprecatedになったActiveRecord::Base.clear_all_connections!を使用している箇所があったのを修正しています。
Adds validate to foreign keys and check constraints in schema.rb
activerecord/lib/active_record/schema_dumper.rbの修正です。
foreign keys 及び check constraintsのvalidateオプションがschema.rbに出力されていなかったのを、出力されるよう修正しています。