Fixed #13711 -- Model check added to ensure that auto-generated field name is within limits of the database.

...ion.
Yes, but there we are testing behavior on TestCase so it makes more sense. Maybe it's fine here, but it seems fishy. In any case, I haven't looked into alternatives.