2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2022-12-01 10:46:42 +01:00
|
|
|
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
|