Explicitly record Tombstone quotes as deleted
This adds a `deleted` state to the internal representation, but this does not change the API, which already included such a state.
This commit is contained in:
parent
a186bad399
commit
d7d6407d41
6 changed files with 12 additions and 6 deletions
|
|
@ -21,7 +21,7 @@ class Quote < ApplicationRecord
|
|||
REFRESH_DEADLINE = 6.hours
|
||||
|
||||
enum :state,
|
||||
{ pending: 0, accepted: 1, rejected: 2, revoked: 3 },
|
||||
{ pending: 0, accepted: 1, rejected: 2, revoked: 3, deleted: 4 },
|
||||
validate: true
|
||||
|
||||
belongs_to :status
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue