Sha256: 0adb8d2a66e558f0f841c24f967024d42fa3e16fe601130983f930a656e49d8f
Contents?: true
Size: 679 Bytes
Versions: 28
Compression:
Stored size: 679 Bytes
Contents
## ## Only object_key, object_path, no validations. ## class Office::EmailMessageStub include Mongoid::Document include Mongoid::Timestamps STATE_PENDING = 'state_pending' STATE_PROCESSED = 'state_processed' STATES = [ STATE_PENDING, STATE_PROCESSED ] field :state, type: :string, default: STATE_PENDING field :object_key, type: :string ## aka 'filename', use with bucket name + prefix validates :object_key, presence: true, uniqueness: true # field :object_path, type: :string ## A routable s3 url ## @TODO: remove this field. _vp_ 2023-03-07 # field :wp_term_ids, type: :array, default: [] end MsgStub = EMS = Office::EmailMessageStub
Version data entries
28 entries across 28 versions & 1 rubygems