mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-08-18 05:54:57 +00:00
9 lines
427 B
Ruby
9 lines
427 B
Ruby
class AddAccessTokenIdToWebPushSubscriptions < ActiveRecord::Migration[5.2]
|
|
def change
|
|
safety_assured do
|
|
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
|
|
end
|