demarches-normaliennes/app/models/dossier_resolution.rb
2023-06-02 16:13:16 +02:00

17 lines
457 B
Ruby

# == Schema Information
#
# Table name: dossier_resolutions
#
# id :bigint not null, primary key
# resolved_at :datetime
# created_at :datetime not null
# updated_at :datetime not null
# commentaire_id :bigint
# dossier_id :bigint not null
#
class DossierResolution < ApplicationRecord
belongs_to :dossier
belongs_to :commentaire
scope :pending, -> { where(resolved_at: nil) }
end