2022/10/26分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
- Adapter
#execute
methods now accept anallow_retry
option. When set totrue
, the SQL statement will be retried, up to the database's configuredconnection_retries
value, upon encountering connection-related errors. - Adds
validate
to 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
に出力されていなかったのを、出力されるよう修正しています。