Posts by user17185 • 16 points
1 post
-
0
votes1
answer207
viewsA: Set the size of a field in migration
Use the parameter limit: t.string :title, limit: 50 Official documentation here: http://guides.rubyonrails.org/migrations.html#column-modifiers…
ruby-on-railsanswered user17185 16