Sha256: 8fc66de25c33ac47310fa3e71339fcd3518992cc3d79bd251cb1afbfe8962c60

Contents?: true

Size: 522 Bytes

Versions: 5

Compression:

Stored size: 522 Bytes

Contents

module Rpush
  module Client
    module Mongoid
      module Apns
        class Feedback
          include ::Mongoid::Document

          field :device_token, type: String
          field :failed_at, type: Time

          belongs_to :app

          validates :device_token, presence: true
          validates :failed_at, presence: true

          index device_token: 1
          index app_id: 1

          validates_with Rpush::Client::ActiveModel::Apns::DeviceTokenFormatValidator
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rpush-2.7.0-java lib/rpush/client/mongoid/apns/feedback.rb
rpush-2.7.0 lib/rpush/client/mongoid/apns/feedback.rb
rpush-2.6.0-java lib/rpush/client/mongoid/apns/feedback.rb
rpush-2.6.0 lib/rpush/client/mongoid/apns/feedback.rb
rpush-2.5.0 lib/rpush/client/mongoid/apns/feedback.rb