From 3f075c7794ca7cc6e3c566591e9929859c6c325c Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sun, 29 Jan 2017 01:30:32 +0100 Subject: API for apps to register for push notifications --- app/models/device.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/models/device.rb (limited to 'app/models') 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 -- cgit