Merge pull request #10138 from demarches-simplifiees/relax_agent_connect_constraints

Tech: rend les champs agent connect usual and given name optionnels
This commit is contained in:
LeSim 2024-03-18 13:57:10 +00:00 committed by GitHub
commit a60bc5d630
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 3 deletions

View file

@ -0,0 +1,7 @@
class RemoveConstraintOnAgentConnectInformation < ActiveRecord::Migration[7.0]
def change
# make given_name, usual_name nullable
change_column_null :agent_connect_informations, :given_name, true
change_column_null :agent_connect_informations, :usual_name, true
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2024_03_18_092147) do
ActiveRecord::Schema[7.0].define(version: 2024_03_18_134256) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -95,14 +95,14 @@ ActiveRecord::Schema[7.0].define(version: 2024_03_18_092147) do
t.string "belonging_population"
t.datetime "created_at", null: false
t.string "email", null: false
t.string "given_name", null: false
t.string "given_name"
t.bigint "instructeur_id", null: false
t.string "organizational_unit"
t.string "phone"
t.string "siret"
t.string "sub", null: false
t.datetime "updated_at", null: false
t.string "usual_name", null: false
t.string "usual_name"
t.index ["instructeur_id"], name: "index_agent_connect_informations_on_instructeur_id"
end