-
Notifications
You must be signed in to change notification settings - Fork 66
Settings that are a length greater than 255 chars truncate in MySQL #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I realize by doing this, all of the settings render If you adopt my strategy, you should have the form generator respect the type as defined in the YAML file. |
+1 I'm getting: Using Postgres & rails4. same issue really. |
^ thats when using for example a redactor field and entering a bit of text & an image. |
@f3ndot could you please create a PR for this? |
@luckyjazzbo I'll get around to it when I have time. I'd want to solve the |
Because
t.string :string
is used in the ActiveAdmin Settings migrations, long strings (or settings of typetext
) are truncated at 255 in MySQL.The solution is to revise the migration to be the following:
By using
t.text
it should allow any length, I believe.The text was updated successfully, but these errors were encountered: