relax agent connect constraints

This commit is contained in:
simon lehericey 2024-03-18 14:47:52 +01:00
parent 78462841cc
commit 2a81ca3871
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