Permalink
Browse files

Merge pull request #7158 from yahonda/use_string_for_settings

Use string datatype for the setting attribute
  • Loading branch information...
2 parents c324f42 + 05895c6 commit b5c2384a6132e3031e77e66632c07afaaa83cf91 @rafaelfranca rafaelfranca committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/schema/schema.rb
View
2 activerecord/test/schema/schema.rb
@@ -37,7 +37,7 @@ def create_table(*args, &block)
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

0 comments on commit b5c2384

Please sign in to comment.