class Ahoy::Message include Mongoid::Document belongs_to :user, polymorphic: true, optional: true, index: true field :to_ciphertext, type: String field :to_bidx, type: String field :mailer, type: String field :subject, type: String field :sent_at, type: Time index({to_bidx: 1}) <%= lockbox_method %> :to blind_index :to end