class Client < ApplicationRecord
	validates :name, presence: { message: "Please enter  client name." }
	validates :name,  :uniqueness => {:message =>"This client name is already taken." } ,on: :create 
	validates :location_code ,presence: { message: "Please enter  client location code." }
	validates :location_code,  :uniqueness => {:message =>"This location code is already taken." } ,on: :create 
end
