# == Schema Information
#
# Table name: competition_notices
#
#  id                  :integer          not null, primary key
#  competition_info_id :integer
#  user_id             :integer
#  title               :string(255)
#  content             :text(4294967295)
#  created_at          :datetime         not null
#  updated_at          :datetime         not null
#
# Indexes
#
#  index_competition_notices_on_competition_info_id  (competition_info_id)
#  index_competition_notices_on_user_id              (user_id)
#

class CompetitionNotice < ApplicationRecord
  belongs_to :competition_info
  belongs_to :user

  has_many :attachments, as: :container, dependent: :destroy

end
