christy13/gitty — comment on commit 46eaa1414c861a1ea6c74f5f20145ab7c3b33cc5
File: app/models/profile.rb line 31
By pwnall:

I was only thinking length checks, nothing fancy.

If you try to stick something too long in the database it gets truncated, and that can cause confusion / anger. For example, if the migration would say that :length => 4 on the city (unlikely, but still), I'd write "Boston, MA, USA" and get back "Bost" with no warning whatsoever.