lloydmeta/push_to_devices

View on GitHub
models/device_token.rb

Summary

Maintainability
A
0 mins
Test Coverage
# encoding: utf-8
class DeviceToken
  include Mongoid::Document
  include Mongoid::Timestamps # adds created_at and updated_at fields

  # field <name>, :type => <type>, :default => <value>

  # You can define indexes on documents using the index macro:
  # index :field <, :unique => true>

  # You can create a composite key in mongoid to replace the default id using the key macro:
  # key :field <, :another_field, :one_more ....>

  def device_id
  end

end