2014/07/22分のコミットです。
CHANGELOGにのったコミットは以下の通りです。
Touch option description grammatical error fixed [ci skip]
activerecord/lib/active_record/associations.rb
のdocの修正です。
has_one
メソッドのdocのグラマーの修正です。
Remove the side-effects of validates_presence_of.
activerecord/test/cases/validations/presence_validation_test.rb
の修正です。
test_validates_presence_doesnt_convert_to_array
テストの修正です。
テストの中でSpeedometer
クラスにvalidatorを追加していたのですが、その影響で別のテストケースがエラーになってしまっていたので、Speedometer
クラスにvalidatorを追加する処理を修正しています。
docs, add example for running a single test against core adapters.
rails guideのContributing to Ruby on Rails
の修正です。
単体テストのやり方を追記しています。
$ bundle exec rake TEST=test/cases/associations/has_many_associations_test.rb
Remove length limit that results failure in other tests.
activerecord/test/cases/migration_test.rb
の修正です。
テスト用のカラムからlength limitを削除して、代わりにnull成約を追加しています。length limitの影響で他のテストがコケてしまった為のようです。
build fix, remove not null constraint.
再度activerecord/test/cases/migration_test.rb
の修正です。
先程のコミットで追加されたnull成約を削除しています。既に使用しているカラムなので、null成約を入れる事は出来ない為との事です。
Make sure assertion passes for postgresql.
activerecord/test/cases/associations/nested_through_associations_test.rb
の修正です。
test_has_many_through_has_one_through_with_has_one_source_reflection_preload
のテストでassert_no_queries
メソッドにignore_none: false
オプションを設定しています。
不要なQueryの出力を抑制する為ですね。assert_no_queries
メソッドについてはこちら。
Remove redundant that already happened in teardown.
activerecord/test/cases/attribute_decorators_test.rb
の修正です。
重複しているreset処理を削除しています。
Allow to specify a type for foreign key column in migrations
ActiveRecordのreferenceの修正です。
マイグレーションに定義するreferences
、add_reference
に型の指定が出来るよう対応しています。
change_table :vehicle do |t| t.references :station, type: :uuid end
元々はintegerしか指定出来なかったんですね。uuid使ってる時は助かります。
rails guideのGetting Started with Rails
の修正です。
bin/rails --version
をrails --version
に修正しています。