闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
369 B

  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