allow unattached fci
This commit is contained in:
parent
461b774188
commit
2e118a8f5b
3 changed files with 7 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
|||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# france_connect_particulier_id :string
|
||||
# user_id :integer not null
|
||||
# user_id :integer
|
||||
#
|
||||
class FranceConnectInformation < ApplicationRecord
|
||||
belongs_to :user, optional: true
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class RemoveUserIdNotNullConstraintToFranceConnectInformation < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column_null(:france_connect_informations, :user_id, true)
|
||||
end
|
||||
end
|
|
@ -473,7 +473,7 @@ ActiveRecord::Schema.define(version: 2021_10_12_100819) do
|
|||
t.date "birthdate"
|
||||
t.string "birthplace"
|
||||
t.string "france_connect_particulier_id"
|
||||
t.integer "user_id", null: false
|
||||
t.integer "user_id"
|
||||
t.string "email_france_connect"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
|
|
Loading…
Reference in a new issue