20200516183822_create_one_time_keys.rb 369 B

123456789101112
  1. class CreateOneTimeKeys < ActiveRecord::Migration[5.2]
  2. def change
  3. create_table :one_time_keys do |t|
  4. t.references :device, foreign_key: { on_delete: :cascade }
  5. t.string :key_id, default: '', null: false, index: :unique
  6. t.text :key, default: '', null: false
  7. t.text :signature, default: '', null: false
  8. t.timestamps
  9. end
  10. end
  11. end