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/schema_dumper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/test/schema_dumper_test.rb') diff --git a/activerecord/test/schema_dumper_test.rb b/activerecord/test/schema_dumper_test.rb index d18b99d561..fa2b8bdf24 100644 --- a/activerecord/test/schema_dumper_test.rb +++ b/activerecord/test/schema_dumper_test.rb @@ -108,7 +108,7 @@ if ActiveRecord::Base.connection.respond_to?(:tables) if current_adapter?(:MysqlAdapter) def test_schema_dump_should_not_add_default_value_for_mysql_text_field output = standard_dump - assert_match %r{t.text\s+"body",\s+:null => false$}, output + assert_match %r{t.text\s+"body",\s+:default => "",\s+:null => false$}, output end end -- cgit v1.2.3