18 lines
542 B
Ruby
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
|