app/models/incoming_message_error.rb
# == Schema Information
# Schema version: 20210114161442
#
# Table name: incoming_message_errors
#
# id :integer not null, primary key
# created_at :datetime not null
# updated_at :datetime not null
# unique_id :string not null
# retry_at :datetime
# backtrace :text
#
# models/incoming_message_error.rb:
#
# Store details of errors that have been generated when trying to import
# emails from a POP mailbox into the application. Used by AlaveteliMailPoller
# to record errors and to determine whether to retry importing a given mail.
# The unique_id field represents the unique identifier applied to a given
# mail in the POP mailbox.
class IncomingMessageError < ApplicationRecord
validates_presence_of :unique_id
end