なるようになるブログ

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

rails commit log流し読み(2020/11/13)

2020/11/13分のコミットです。

CHANGELOGへの追加はありませんでした。


Add support for sqlcmd instead of sqsh on sql server

railties/lib/rails/commands/dbconsole/dbconsole_command.rbの修正です。

dbconsolesql 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_toroleに存在しない値を指定した場合のエラーメッセージが、実際に出力される内容と異なっていたのを修正しています。


Support delegators for find_by

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

find_byで値がActiveRecord::Baseを継承したインスタンスかどうかでチェックしていたのを、respond_to?でidを取得出来るかどうかに修正しています。find_bydelegateしたオブジェクトを渡せるようにする為