add validation for uniqueness migrate