Permalink
Browse files

Modify test schema.rb to use a VARCHAR rather than a TEXT when a defa…

…ult is required to keep MySQL happy.
  • Loading branch information...
mipearson committed Apr 30, 2012
1 parent 2ce5e4f commit a9721d89417c3912944d26610b4df370c56be8ae
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/test/schema/schema.rb
@@ -38,7 +38,9 @@ def create_table(*args, &block)
create_table :admin_users, :force => true do |t|
t.string :name
t.text :settings, :null => true
- t.text :preferences, :null => false, :default => ""
+ # MySQL does not allow default values for blobs. Fake it out with a
+ # big varchar below.
+ t.string :preferences, :null => false, :default => '', :limit => 1024
t.references :account
end

0 comments on commit a9721d8

Please sign in to comment.