2020/11/13分のコミットです。
CHANGELOGへの追加はありませんでした。
Add support for sqlcmd instead of sqsh on sql server
railties/lib/rails/commands/dbconsole/dbconsole_command.rb
の修正です。
dbconsole
でsql serverに接続する際に、sqsh
を使用していたのをsqlcmd
を使用するよう修正しています。sqsh
はもうメンテされていない為。
Merge pull request #40605 from jonathanhefner/guide-active_support_core_extensions-link-api
rails guideのActive Support Core Extensions
の修正です。
各メソッドについてAPI docにリンクするよう修正しています。
Add test that primary_key and reference columns should be identical type for add_reference
activerecord/test/cases/migration/references_statements_test.rb
の修正です。
primary_keyとreference columnが同じtypeである必要がある事を確認するテストを追加しています。
Sync error message with connected_to(role: :nonexistent)
[ci skip]
rails guideのMultiple Databases with Active Record
の修正です。
connected_to
のrole
に存在しない値を指定した場合のエラーメッセージが、実際に出力される内容と異なっていたのを修正しています。
Support delegators for find_by
activerecord/lib/active_record/core.rb
の修正です。
find_by
で値がActiveRecord::Base
を継承したインスタンスかどうかでチェックしていたのを、respond_to?
でidを取得出来るかどうかに修正しています。find_by
にdelegateしたオブジェクトを渡せるようにする為