demarches-normaliennes/app/models/notification.rb
2017-04-26 16:55:22 +02:00

11 lines
331 B
Ruby

class Notification < ActiveRecord::Base
belongs_to :dossier
enum type_notif: {
commentaire: 'commentaire',
cerfa: 'cerfa',
piece_justificative: 'piece_justificative',
champs: 'champs',
submitted: 'submitted'
}
scope :unread, -> { where(already_read: false) }
end