# frozen_string_literal: true

# == Schema Information
#
# Table name: user_skills
#
#  id          :integer          not null, primary key
#  description :text
#  url         :string           not null
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#  skill_id    :integer          indexed
#  user_id     :integer          indexed
#
# Indexes
#
#  index_user_skills_on_skill_id  (skill_id)
#  index_user_skills_on_user_id   (user_id)
#
# Foreign Keys
#
#  fk_rails_...  (skill_id => skills.id)
#  fk_rails_...  (user_id => users.id)
#

class UserSkill < ApplicationRecord
  belongs_to :user
  belongs_to :skill

  validates :url, presence: true
end
