mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 19:11:13 +00:00
91b31860a1
* Feature: Push notifications for Android Notification config for desktop and mobile are merged. Desktop notifications stay as they are for desktop views. If mobile mode, push notifications are enabled. Added push notification subscriptions in their own table, rather than through custom fields. Notification banner prompts appear for both mobile and desktop when enabled.
14 lines
348 B
Ruby
14 lines
348 B
Ruby
class PushSubscription < ActiveRecord::Base
|
|
belongs_to :user
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: push_subscription
|
|
#
|
|
# id :integer not null, primary key
|
|
# user_id :integer not null
|
|
# data :string not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|