demarches-normaliennes/app/models/bulk_message.rb

19 lines
564 B
Ruby
Raw Normal View History

# == 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, -> { order(:label) }
2021-08-02 11:19:20 +02:00
has_one_attached :piece_jointe
end