Permalink
Browse files

Session data will exceed 255 bytes. Use TEXT.

  • Loading branch information...
1 parent 64ca80e commit 3ec67595522b573f800ad4f8df3ed8436eb670c7 @jeremy jeremy committed Jul 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/session_store.rb
@@ -84,7 +84,7 @@ def create_table!
CREATE TABLE #{table_name} (
id #{connection.type_to_sql(:primary_key)},
#{connection.quote_column_name(session_id_column)} VARCHAR(255) UNIQUE,
- #{connection.quote_column_name(data_column_name)} VARCHAR(255)
+ #{connection.quote_column_name(data_column_name)} TEXT
)
end_sql
end

0 comments on commit 3ec6759

Please sign in to comment.