I\'m new to Ruby and Rails and I\'m running Rails 3 on Ruby 1.9.2.
I want to create a model, so I looked at the documentation to get the table definition that I want, bu
As it turns out, the limit can (now) be specified in the command line:
rails generate model user pseudo:string{30}
Source: usage doc from Rails GitHub project
Setting the default, however, still appears to require editing the migration manually.
For additional migration options, see the official Rails migrations guide.