lib/templates/outbox.rb in outboxable-0.1.5 vs lib/templates/outbox.rb in outboxable-0.1.6
- old
+ new
@@ -4,10 +4,10 @@
# Callbacks
before_create :set_last_attempted_at
before_save :check_publishing
after_commit :publish, if: :allow_publish?
# Enums
- enum status: { pending: 0, published: 1, failed: 2 }
+ enum status: { pending: 0, processing: 1, published: 2, failed: 3 }
enum size: { single: 0, batch: 1 }
# Validations
validates :payload, :exchange, :routing_key, presence: true