add validations based on migration unique index