RE: [Rails] In migrations, how do I change the length of a string?


I think you want to either specify the size in parens ":string(80)" or using the limit option ":limit => 80". Try and see which one works for you.


Thanks guys, :limit did it for me. How come there's no documentation
on it on the api? How come the API doesn't list all the types (like
:integer, :string, :text, :datetime etc.)?


Take a look at this.


Thanks aaron!


Just posting the actual url: