class User < ActiveRecord::Base
  has_secure_password
  validates :username, presence: true
  validates :username, uniqueness: true
  validates :email, presence: true
  validates :email, uniqueness: true
  has_many :recipes, :dependent => :destroy
  has_many :likes, :dependent => :destroy
  has_many :bags, :dependent => :destroy
end
