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

Ben,

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.

Nathan

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.)?

-Ben

Take a look at this.

Aaron

Thanks aaron!

-Ben

Just posting the actual url:

http://api.rubyonrails.com/classes/ActiveRecord/ConnectionAdapters/TableDefinition.html