add id_token to instructeur

We use instructeur to store the id_token as the instructeur may have (in the migration and in the future) multiple agent connect information
This commit is contained in:
simon lehericey 2024-03-18 10:23:56 +01:00
parent 063445b892
commit c1171cfd8b
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,5 @@
class AddAgentConnectIdTokenColumnToInstructeurTable < ActiveRecord::Migration[7.0]
def change
add_column :instructeurs, :agent_connect_id_token, :string
end
end

View file

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_03_16_065520) do ActiveRecord::Schema[7.0].define(version: 2024_03_18_092147) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto" enable_extension "pgcrypto"
enable_extension "plpgsql" enable_extension "plpgsql"
@ -763,6 +763,7 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_16_065520) do
create_table "instructeurs", id: :serial, force: :cascade do |t| create_table "instructeurs", id: :serial, force: :cascade do |t|
t.string "agent_connect_id" t.string "agent_connect_id"
t.string "agent_connect_id_token"
t.boolean "bypass_email_login_token", default: false, null: false t.boolean "bypass_email_login_token", default: false, null: false
t.datetime "created_at", precision: nil t.datetime "created_at", precision: nil
t.text "encrypted_login_token" t.text "encrypted_login_token"