mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-07 19:23:37 +01:00
12 lines
275 B
Ruby
12 lines
275 B
Ruby
|
class CreateWebPushSubscriptions < ActiveRecord::Migration[6.1]
|
||
|
def change
|
||
|
create_table :web_push_subscriptions do |t|
|
||
|
t.bigint :user_id, null: false
|
||
|
t.json :subscription
|
||
|
t.timestamps
|
||
|
end
|
||
|
|
||
|
add_index :web_push_subscriptions, :user_id
|
||
|
end
|
||
|
end
|