aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema_dumper_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-01-28 15:45:06 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-01-28 15:45:06 +0000
commit269ad9711ddc179e72cc7da3176893a1dcca1b26 (patch)
tree0536f985e974993471ed726193b3e609856eda25 /activerecord/test/schema_dumper_test.rb
parent5acea7fc9ca19848733c0a81e0c018bc7388af5e (diff)
downloadrails-269ad9711ddc179e72cc7da3176893a1dcca1b26.tar.gz
rails-269ad9711ddc179e72cc7da3176893a1dcca1b26.tar.bz2
rails-269ad9711ddc179e72cc7da3176893a1dcca1b26.zip
MySQL: blob and text columns may not have defaults in 5.x. Update fixtures schema for strict mode. Closes #6695.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/schema_dumper_test.rb')
-rw-r--r--activerecord/test/schema_dumper_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/schema_dumper_test.rb b/activerecord/test/schema_dumper_test.rb
index 8cbcbb39e5..576c2cebc3 100644
--- a/activerecord/test/schema_dumper_test.rb
+++ b/activerecord/test/schema_dumper_test.rb
@@ -89,6 +89,13 @@ if ActiveRecord::Base.connection.respond_to?(:tables)
end
end
+ if current_adapter?(:MysqlAdapter)
+ def test_schema_dump_should_not_add_default_value_for_mysql_text_field
+ output = standard_dump
+ assert_match %r{t.column "body",\s+:text,\s+:null => false$}, output
+ end
+ end
+
def test_schema_dump_includes_decimal_options
stream = StringIO.new
ActiveRecord::SchemaDumper.ignore_tables = [/^[^n]/]