Sha256: dcf005debcbb53e897c87b49b37e7fd72276846bf6ae06d9044a97e11c427e16

Contents?: true

Size: 249 Bytes

Versions: 9

Compression:

Stored size: 249 Bytes

Contents

module Passkit
  class Device < ActiveRecord::Base
    validates_uniqueness_of :identifier
    validates_uniqueness_of :push_token

    has_many :registrations, foreign_key: :passkit_device_id
    has_many :passes, through: :registrations
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
passkit-0.4.3 app/models/passkit/device.rb
passkit-0.4.2 app/models/passkit/device.rb
passkit-0.4.1 app/models/passkit/device.rb
passkit-0.4.0 app/models/passkit/device.rb
passkit-0.3.3 app/models/passkit/device.rb
passkit-0.3.2 app/models/passkit/device.rb
passkit-0.3.1 app/models/passkit/device.rb
passkit-0.3.0 app/models/passkit/device.rb
passkit-0.2.0 app/models/passkit/device.rb