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:
Claire 2025-10-09 15:55:49 +02:00
commit d7d6407d41
6 changed files with 12 additions and 6 deletions

View file

@ -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