1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

MySQL doesn't allow default values for blobs.

This commit is contained in:
Rafael Mendonça França 2012-05-13 20:12:00 -03:00
parent 71931e2ef1
commit 1839ecd228

View file

@ -41,8 +41,8 @@ ActiveRecord::Schema.define do
# 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