Markus
Markus

Reputation: 4038

Mysql strings only get saved up to about 277 char

Im using ruby on rails with a mysql db in the back. I realized, that the characters are limited up to about 277 per column entry...

How can I increase this?

Thanks, Markus

Upvotes: 1

Views: 83

Answers (2)

Ransom Briggs
Ransom Briggs

Reputation: 3095

change_column :the_table_name, :the_column_name, :string, :limit => 1024 # where 1024 is your desired limit

Upvotes: 4

Pavan
Pavan

Reputation: 18548

Changing the field type from text to mediumtext would allow you to enter more characters

PK

Upvotes: 0

Related Questions