diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-09-04 02:44:10 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-09-04 02:44:10 +0000 |
commit | 3bbef581afc4bbe1f6280b56a1b6a6a12133c9d9 (patch) | |
tree | f83a3c17f3d8b80b5d228d153d0b5fece21f8d47 /activerecord/test/migration_test.rb | |
parent | 109bf67f3fa998b661e46785ee4a2b8fec1479df (diff) | |
download | rails-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/migration_test.rb')
-rw-r--r-- | activerecord/test/migration_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |