diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-29 01:30:32 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-29 01:30:32 +0100 |
commit | 3f075c7794ca7cc6e3c566591e9929859c6c325c (patch) | |
tree | fd649accdafbb57cf1ac5d7231dd44bd5dd447c8 /app/models | |
parent | 1992575d577bf5b4c408a0104ad310e17846466a (diff) |
API for apps to register for push notifications
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/device.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/device.rb b/app/models/device.rb new file mode 100644 index 000000000..2782a7f38 --- /dev/null +++ b/app/models/device.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class Device < ApplicationRecord + belongs_to :account + + validates :account, :registration_id, presence: true +end |