Skip to content

Commit

Permalink
Merge pull request #1626 from ualbertalib/add-description-to-status-enum
Browse files Browse the repository at this point in the history
#1615: Document Status enum on DraftItem/DraftThesis models in detail
  • Loading branch information
murny authored Apr 30, 2020
2 parents 58b5c23 + 3b6ef10 commit be07bda
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/concerns/draft_properties.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ module DraftProperties
UNIVERSITY_INCEPTION_YEAR = 1908

included do
# "status" enum is for keeping track of where a draft object is within the deposit wizard workflow
# Possible status values are as follows:
# inactive: Draft objects where the user never passed first step of deposit wizard.
# active: Draft objects where the user made it passed first step, but hasn't finished completing the deposit wizard.
# archived: Draft objects that have been "published" where a user has successfully deposited and completed the deposit wizard.
enum status: { inactive: 0, active: 1, archived: 2 }

# Note that dependent: false is necessary here as Items and DraftItems can both have ActiveStorage::Attachment records
Expand Down

0 comments on commit be07bda

Please sign in to comment.