From 4f082a303a1db57c273b84f5edc6eccac0e6e932 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Fri, 9 Nov 2007 20:29:56 +0000 Subject: [PATCH] ActionItem16: moving uniqueness validation to person --- app/models/person.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/models/person.rb b/app/models/person.rb index 1761e71..0e943fa 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -33,6 +33,7 @@ class Person < Profile end validates_presence_of :user_id + validates_uniqueness_of :user_id def initialize(*args) super(*args) -- libgit2 0.21.2