2023-06-30 11:26:23 +02:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: dossier_assignments
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# assigned_at :datetime not null
|
|
|
|
# assigned_by :string
|
|
|
|
# groupe_instructeur_label :string
|
|
|
|
# mode :string not null
|
|
|
|
# previous_groupe_instructeur_label :string
|
|
|
|
# dossier_id :bigint not null
|
|
|
|
# groupe_instructeur_id :bigint
|
|
|
|
# previous_groupe_instructeur_id :bigint
|
|
|
|
#
|
|
|
|
class DossierAssignment < ApplicationRecord
|
|
|
|
belongs_to :dossier
|
|
|
|
|
|
|
|
enum mode: {
|
|
|
|
auto: 'auto',
|
|
|
|
manual: 'manual'
|
|
|
|
}
|
2023-06-30 15:27:38 +02:00
|
|
|
scope :manual, -> { where(mode: :manual) }
|
2023-06-30 11:26:23 +02:00
|
|
|
end
|