demarches-normaliennes/db/migrate/20221129104327_create_api_tokens.rb
2024-08-22 09:26:48 +02:00

13 lines
377 B
Ruby

# frozen_string_literal: true
class CreateAPITokens < ActiveRecord::Migration[6.1]
def change
create_table :api_tokens, id: :uuid do |t|
t.references :administrateur, null: false, foreign_key: true
t.string :encrypted_token, null: false
t.string :name, null: false
t.integer :version, null: false, default: 3
t.timestamps
end
end
end