class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  	validates :first_name, presence: true, uniqueness: true
	validates :last_name, presence: true, uniqueness: true
	validates :birthday, presence: true
	validates :gender, presence: true

  	devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

    has_many :votes
end