[#10799] Declare api_entreprise_token_expires_at attribute and feed it on save

This commit is contained in:
Mathieu Magnin 2024-09-24 14:08:06 +02:00
parent 222038d9de
commit 2d9854dc01
No known key found for this signature in database
GPG key ID: 8DCAFC82D7BA654E
6 changed files with 84 additions and 1 deletions

View file

@ -0,0 +1,7 @@
# frozen_string_literal: true
class AddAPIEntrepriseTokenExpiresAtToProcedures < ActiveRecord::Migration[7.0]
def change
add_column :procedures, :api_entreprise_token_expires_at, :datetime, precision: nil
end
end

View file

@ -242,8 +242,8 @@ ActiveRecord::Schema[7.0].define(version: 2024_09_29_141825) do
t.integer "dossier_count"
t.string "dossier_state"
t.bigint "instructeur_id", null: false
t.datetime "sent_at", precision: nil, null: false
t.bigint "procedure_id"
t.datetime "sent_at", precision: nil, null: false
t.datetime "updated_at", null: false
end
@ -934,6 +934,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_09_29_141825) do
t.boolean "allow_expert_messaging", default: true, null: false
t.boolean "allow_expert_review", default: true, null: false
t.string "api_entreprise_token"
t.datetime "api_entreprise_token_expires_at", precision: nil
t.text "api_particulier_scopes", default: [], array: true
t.jsonb "api_particulier_sources", default: {}
t.boolean "ask_birthday", default: false, null: false