Adding and removing people
This commit is contained in:
parent
d95d8f234b
commit
3a2bf49f97
6 changed files with 64 additions and 28 deletions
|
|
@ -10,6 +10,7 @@ class Person < ActiveRecord::Base
|
|||
|
||||
validates :first_name, :presence => true
|
||||
validates :last_name, :presence => true
|
||||
validates :email, :presence => true
|
||||
validate :biography_limit
|
||||
|
||||
before_create :generate_guid
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue