diff options
author | Jeremy Walker <jeremy@meducation.net> | 2012-08-09 15:04:27 +0100 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-09 13:57:44 -0300 |
commit | af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48 (patch) | |
tree | 4cbc712555b2c63d1c623d8e3b0f35c4d36d4b43 /activerecord | |
parent | 2a6039a81027a4f0f3f9fc4d95b6bba7323af28d (diff) | |
download | rails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.tar.gz rails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.tar.bz2 rails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.zip |
Backport #7173.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/schema/schema.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 15be4f0954..2b7ea0ce34 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -37,8 +37,10 @@ ActiveRecord::Schema.define do create_table :admin_users, :force => true do |t| t.string :name - t.text :settings, :null => true - t.text :preferences, :null => false, :default => "" + t.string :settings, :null => true, :limit => 1024 + # MySQL does not allow default values for blobs. Fake it out with a + # big varchar below. + t.string :preferences, :null => true, :default => '', :limit => 1024 t.references :account end |