20170713175513_create_web_push_subscriptions.rb 298 B

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