Permalink
Browse files

MySQL doesn't allow default values for blobs.

  • Loading branch information...
1 parent 71931e2 commit 1839ecd2288680dba8533610eb4c9dfe2ab6326e @rafaelfranca rafaelfranca committed May 13, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/schema/schema.rb
@@ -41,8 +41,8 @@ def create_table(*args, &block)
# 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.text :json_data, :null => true
- t.text :json_data_empty, :null => false, :default => ""
+ t.string :json_data, :null => true, :limit => 1024
+ t.string :json_data_empty, :null => false, :default => "", :limit => 1024
t.references :account
end

0 comments on commit 1839ecd

Please sign in to comment.