提交 ce3c76de 编写于 作者: T Tarmo Tänav 提交者: Michael Koziarski

Just look at sql_type when testing that the correct database-specific type was used

Signed-off-by: NMichael Koziarski <michael@koziarski.com>
上级 e06878c2
......@@ -442,10 +442,7 @@ def test_unabstracted_database_dependent_types
ActiveRecord::Migration.add_column :people, :intelligence_quotient, :tinyint
Person.reset_column_information
Person.create :intelligence_quotient => 300
jonnyg = Person.find(:first)
assert_equal 127, jonnyg.intelligence_quotient
jonnyg.destroy
assert_match /tinyint/, Person.columns_hash['intelligence_quotient'].sql_type
ensure
ActiveRecord::Migration.remove_column :people, :intelligence_quotient rescue nil
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册