discourse/db/migrate/20180425185749_create_push_subscription.rb
Jeff Wong 91b31860a1
Feature: Push notifications for Android (#5792)
* 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.
2018-05-04 15:31:48 -07:00

10 lines
226 B
Ruby

class CreatePushSubscription < ActiveRecord::Migration[5.1]
def change
create_table :push_subscriptions do |t|
t.integer :user_id, null: false
t.string :data, null: false
t.timestamps
end
end
end