Permalink
Browse files

Fix assertion for the mysql default work around committed earlier.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent aa32f66 commit 0d696f09ac5c5106d4343d6a2add565620b2b45c @NZKoz NZKoz committed Sep 5, 2007
Showing with 5 additions and 1 deletion.
  1. +5 −1 activerecord/test/migration_test.rb
@@ -748,7 +748,11 @@ def test_create_table_with_binary_column
columns = Person.connection.columns(:binary_testings)
data_column = columns.detect { |c| c.name == "data" }
- assert_equal '', data_column.default
+ if current_adapter?(:MysqlAdapter)
+ assert_equal '', data_column.default
+ else
+ assert_nil data_column.default
+ end
Person.connection.drop_table :binary_testings rescue nil
end

0 comments on commit 0d696f0

Please sign in to comment.