I have this code :
class Member extends ActiveRecord\Model
{
static $validates_uniqueness_of = array(
array('name', 'message' => "That name has already been registered. Please choose another", 'on' => 'create'),
array('email', 'message' => "That email has already been registered. Please choose another", 'on' => 'create')
);
}
The problem is that it checks uniqueness when I update. I don't want that. Only when I create.
What am I typing wrong?
Try something like
This should do the trick already, give it a try =)