aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorJeremy Walker <jeremy@meducation.net>2012-08-09 15:04:27 +0100
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-08-09 13:57:44 -0300
commitaf6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48 (patch)
tree4cbc712555b2c63d1c623d8e3b0f35c4d36d4b43 /activerecord
parent2a6039a81027a4f0f3f9fc4d95b6bba7323af28d (diff)
downloadrails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.tar.gz
rails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.tar.bz2
rails-af6dfdb1f3e2cd3e8a5e00a11a2c7b28352cdf48.zip
Backport #7173.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/schema/schema.rb6
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