Before creating a migration check for duplicates