Skip to content

Commit

Permalink
#1124 Fix "inprogress" and "unpublished" legacy values in versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xhero committed Jun 29, 2021
1 parent ac8b0f4 commit 0bf0ed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/holding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class Holding < ApplicationRecord
attr_accessor :suppress_update_count_trigger
attr_accessor :suppress_update_77x_trigger

enum wf_stage: [ :inprogress, :published, :deleted, :deprecated ]
# Keep both inprogress and unpublished for compatibility with older versions
enum wf_stage: { unpublished: 0, inprogress: 0, published: 1, deleted: 2, deprecated: 3 }
enum wf_audit: [ :unapproved, :full, :abbreviated, :retro, :imported ]

def after_initialize
Expand Down

0 comments on commit 0bf0ed9

Please sign in to comment.