20170713175513_create_web_push_subscriptions.rb 329 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateWebPushSubscriptions < ActiveRecord::Migration[5.1]
  3. def change
  4. create_table :web_push_subscriptions do |t|
  5. t.string :endpoint, null: false
  6. t.string :key_p256dh, null: false
  7. t.string :key_auth, null: false
  8. t.json :data
  9. t.timestamps
  10. end
  11. end
  12. end