aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema_dumper_test.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-09-04 02:44:10 +0000
committerMichael Koziarski <michael@koziarski.com>2007-09-04 02:44:10 +0000
commit3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9 (patch)
treef83a3c17f3d8b80b5d228d153d0b5fece21f8d47 /activerecord/test/schema_dumper_test.rb
parent109bf67f3fa998b661e46785ee4a2b8fec1479df (diff)
downloadrails-3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9.tar.gz
rails-3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9.tar.bz2
rails-3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9.zip
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
Diffstat (limited to 'activerecord/test/schema_dumper_test.rb')
-rw-r--r--activerecord/test/schema_dumper_test.rb2
1 files changed, 1 insertions, 1 deletions
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