demarches-normaliennes/app/models/bulk_message.rb
2021-08-04 11:35:06 +02:00

18 lines
542 B
Ruby

# == Schema Information
#
# Table name: bulk_messages
#
# id :bigint not null, primary key
# body :text not null
# dossier_count :integer
# dossier_state :string
# sent_at :datetime not null
# created_at :datetime not null
# updated_at :datetime not null
# instructeur_id :bigint not null
#
class BulkMessage < ApplicationRecord
belongs_to :instructeur
has_and_belongs_to_many :groupe_instructeurs
has_one_attached :piece_jointe
end