aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/migration_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/migration_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/migration_test.rb')
-rw-r--r--activerecord/test/migration_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/migration_test.rb b/activerecord/test/migration_test.rb
index 825244d88e..0757c6a0c9 100644
--- a/activerecord/test/migration_test.rb
+++ b/activerecord/test/migration_test.rb
@@ -692,7 +692,7 @@ if ActiveRecord::Base.connection.supports_migrations?
assert_nothing_raised {
Person.connection.create_table :binary_testings do |t|
- t.column "data", :binary, :default => "", :null => false
+ t.column "data", :binary, :null => false
end
}
@@ -702,7 +702,7 @@ if ActiveRecord::Base.connection.supports_migrations?
if current_adapter?(:OracleAdapter)
assert_equal "empty_blob()", data_column.default
else
- assert_equal "", data_column.default
+ assert_nil data_column.default
end
Person.connection.drop_table :binary_testings rescue nil