2017/12/26分のコミットです。
CHANGELOGへの追加はありませんでした。
Fix add_column
with :primary_key type compatibility for SQLite
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
SQLite3 adapterを使用している時に、add_column
メソッドでprimary_key
typeのカラムを追加しようとするとエラーになるバグがあったのを修正しています。
prevent shadowing outer variables
activestorage/app/models/active_storage/variation.rb
の修正です。
transform
メソッドでRubyのwarning("warning: shadowing outer local variable")が出ていたのを修正しています。
Prevent to install gems when run test (#31564)
railties/test/generators/app_generator_test.rb
、
railties/test/generators/shared_generator_tests.rb
の修正です。
app generatorのテスト実行時に、デフォルトで生成されるGemfile
に記載されているgemのインストールが実行されてしまっていたのを、実行されないよう修正しています。
Make sql_type
of primary key in SQLite to comparable with an integer (#28008)
activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
の修正です。
SQLite3 adapterでprimary keyが大文字のINTEGER
として扱われていたのを、小文字のinteger
として扱うよう修正しています。他のタイプと合わせる為。
SQLite: Add more test cases for adding primary key
activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
の修正です。
primary keyを追加する場合のテストを色々と追加しています。