I have a model where initially, they we don’t insert an gov_id value
because it isn’t known.
The field is given a value of “” because it is on the form.
I then added code to the ‘create’ method to set that value to nil if it
is blank which seems to be fine but then it fails this validation (if
validates_length_of :gov_id, :maximum => 18, :message => “Maximum
18 characters and numbers combined”
seems like I can’t win here…because I can’t pass validation uniqueness
if it is empty ("") and I can’t pass validation length if it is NULL