class CreateSupportTokens < ActiveRecord::Migration[6.0]
  def change
    create_table :support_tokens do |t|
      t.references :user, null: false, foreign_key: { to_table: :support_users }

      t.string :current, null: false
      t.string :previous
      t.string :client, null: false, index: { unique: true }
      t.integer :expiry, null: false

      t.timestamps
    end
  end
end
