Skip to content

Conversation

f3ndot
Copy link

@f3ndot f3ndot commented Jun 2, 2014

Please verify before merging, I was unable to test due to my shoddy dev environment atm.

This fixes #22.

f3ndot added 2 commits June 1, 2014 22:26
The string column stores a variety of things, from string to blobs of text to html. With its datatype being set to string, most databases impose a default limit of 255 characters. Text does not.
Formtastic, left to its own devices, will implicitly assume an input for a column of type text to be, you guessed it, textarea. We force it to be string for the string (default) case.
@f3ndot f3ndot changed the title Fix long strings Fix long strings, prevent 255 char truncation Jun 2, 2014
@alexkravets
Copy link
Contributor

Please make sure this works and sync up with current master so can be merged automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Settings that are a length greater than 255 chars truncate in MySQL

2 participants