retrospring/db/migrate/20220910000514_create_web_push_subscriptions.rb

12 lines
275 B
Ruby
Raw Normal View History

2022-09-11 20:10:21 +02:00
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