Correct migration to find all duplicate records

and only remove the duplicate with no value