class Ahoy::Message
include Mongoid::Document belongs_to :user, polymorphic: true, optional: true, index: true field :to, type: String field :mailer, type: String field :subject, type: String field :sent_at, type: Time index({to: 1})
end
class Ahoy::Message
include Mongoid::Document belongs_to :user, polymorphic: true, optional: true, index: true field :to, type: String field :mailer, type: String field :subject, type: String field :sent_at, type: Time index({to: 1})
end