chore(schema): +dossier_corrections#kind
This commit is contained in:
parent
93b0af50cc
commit
1c977c72bf
3 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
# Table name: dossier_corrections
|
||||
#
|
||||
# id :bigint not null, primary key
|
||||
# kind :string default("correction"), not null
|
||||
# resolved_at :datetime
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
|
@ -17,6 +18,8 @@ class DossierCorrection < ApplicationRecord
|
|||
|
||||
scope :pending, -> { where(resolved_at: nil) }
|
||||
|
||||
enum kind: { correction: 'correction', incomplete: 'incomplete' }
|
||||
|
||||
def resolved?
|
||||
resolved_at.present?
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue