API for apps to register for push notifications
This commit is contained in:
7
app/models/device.rb
Normal file
7
app/models/device.rb
Normal file
@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Device < ApplicationRecord
|
||||
belongs_to :account
|
||||
|
||||
validates :account, :registration_id, presence: true
|
||||
end
|
Reference in New Issue
Block a user