From 3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9 Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 4 Sep 2007 02:44:10 +0000 Subject: Work around mysql limitations for defaults on text columns with not null. Closes #9324 [caio] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7405 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/migration_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/migration_test.rb') diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb index d1e2059c9a..727ce86d30 100644 --- a/activerecord/test/migration_test.rb +++ b/activerecord/test/migration_test.rb @@ -748,7 +748,7 @@ if ActiveRecord::Base.connection.supports_migrations? columns = Person.connection.columns(:binary_testings) data_column = columns.detect { |c| c.name == "data" } - assert_nil data_column.default + assert_equal '', data_column.default Person.connection.drop_table :binary_testings rescue nil end -- cgit v1.2.3