I found myself performing a rake task to replace with -
the first_name and last_name nil
of the Client
model, but later I was surprised that there was not only nil
in both fields, but also ''
' '
' '
and more, is there a way to identify the customers that meet all these conditions without having to go through all the Clients
?
To clarify, previously the Client
model did not have validation for these fields.