forked from asonix/mastodon
- POST /api/v1/push/subscription - PUT /api/v1/push/subscription - DELETE /api/v1/push/subscription - New OAuth scope: "push" (required for the above methods)
6 lines
393 B
Ruby
6 lines
393 B
Ruby
class AddAccessTokenIdToWebPushSubscriptions < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_reference :web_push_subscriptions, :access_token, null: true, default: nil, foreign_key: { on_delete: :cascade, to_table: :oauth_access_tokens }, index: false
|
|
add_reference :web_push_subscriptions, :user, null: true, default: nil, foreign_key: { on_delete: :cascade }, index: false
|
|
end
|
|
end
|