aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorMichael Pearson <mipearson@gmail.com>2012-04-30 10:42:06 +1000
committerMichael Pearson <mipearson@gmail.com>2012-05-05 17:17:04 +1000
commita9721d89417c3912944d26610b4df370c56be8ae (patch)
tree9562fd3c869af40f06adc23c89e85d9f60a645e3 /activerecord/test
parent2ce5e4fa6c6f44eb0c5cbf812ca62aa03b802379 (diff)
downloadrails-a9721d89417c3912944d26610b4df370c56be8ae.tar.gz
rails-a9721d89417c3912944d26610b4df370c56be8ae.tar.bz2
rails-a9721d89417c3912944d26610b4df370c56be8ae.zip
Modify test schema.rb to use a VARCHAR rather than a TEXT when a default is required to keep MySQL happy.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/schema/schema.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 7082d5dc86..cef08cd99c 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -38,7 +38,9 @@ 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 => ""
+ # 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