2017/12/07分のコミットです。
CHANGELOGへの追加はありませんでした。
Merge pull request #31344 from kamipo/use_string_instead_of_text
activerecord/test/cases/json_attribute_test.rb
、
activerecord/test/cases/json_shared_test_cases.rb
の修正です。
Execute JsonAttributeTest
only if supports_json?
returns true
を revert、及び、Oracle enhanced adapterでもJSON attributesのテストが通るよう修正しています。
テストが通らなかったのはテストに使用していた型(CLOBが使われていたのが不味かった?)、及び、テスト用データの作成処理でprimary key valueが不足していた為だったようなので、左記に関する修正を行っています。
Correct routing test spelling mistake.
actionpack/test/controller/routing_test.rb
の修正です。
routingのテストでprecedence
をprecidence
にタイポしていたのを修正しています。
[ci skip] Make Todo classes inherit ApplicationRecord
activesupport/lib/active_support/core_ext/module/concerning.rb
のdocの修正です。
Module::Concerning
moduleのdocのexampleコードで使用しているclassの親クラスにApplicationRecord
を指定しています。class内でhas_many
やbefore_create
メソッドを使用しており、親クラスにActiveRecordがいる前提になっていた為。
Merge pull request #31327 from aellispierce/custom-id-change-table-sqlite
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
DBにsqliteを使用している場合に、primary keyにid以外のtypeを指定しているtableに対してchange_table
を実行するとエラーになるバグがあったのを修正しています。