Force max length for string in PostgreSQL
Posted
by Jimmy
on Stack Overflow
See other posts from Stack Overflow
or by Jimmy
Published on 2010-06-06T01:53:46Z
Indexed on
2010/06/06
2:02 UTC
Read the original article
Hit count: 372
Hey guys,
I am using heroku for a RoR application and am trying to manually set the length of a string column and am having trouble.
I tried making a migration along the lines of
change_column :posts, :content, :string, :length => 10000
I assumed this would work but no such luck, anyone have some pointers?
Thanks!
© Stack Overflow or respective owner