17 lines
457 B
Ruby
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
|