Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Person < ActiveRecord::Base
- validates :name, length: { minimum: 2 }
- validates :bio, length: { maximum: 500 }
- validates :password, length: { in: 6..20 }
- validates :registration_number, length: { is: 6 }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement