class Person < ApplicationRecord
validates :terms_of_service, acceptance: true, on: :create
validates :eula, acceptance: { accept: ['TRUE', 'accepted'] }, on: :create
validates :email, confirmation: true, on: :update
validates :name, length: { minimum: 2 }, on: :update
validates :bio, length: { maximum: 500 }, on: :update
validates :password, length: { in: 6..20 }, on: :update
validates :registration_number, length: { is: 6 }, on: :update
end