Use string datatype for the setting attribute

to make store works all database adapters.
This commit is contained in:
Yasuo Honda 2012-07-26 00:34:55 +09:00
parent c324f426a8
commit 05895c6c86
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ ActiveRecord::Schema.define do
create_table :admin_users, :force => true do |t|
t.string :name
t.text :settings, :null => true
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 => false, :default => '', :limit => 1024