parent
cea424295f
commit
fe7f8da636
42 changed files with 94 additions and 99 deletions
|
@ -2,7 +2,7 @@ class LinkTypePieceJointeToFormulaire < ActiveRecord::Migration
|
|||
# def up
|
||||
# TypePieceJointe.find_each do |type_piece_jointe|
|
||||
# forms = Formulaire.find_by_demarche_id(type_piece_jointe.CERFA)
|
||||
# type_piece_jointe.update(formulaire_id: forms.id) if forms.present?
|
||||
# type_piece_jointe.update_attributes(formulaire_id: forms.id) if forms.present?
|
||||
# end
|
||||
# end
|
||||
end
|
||||
|
|
|
@ -46,7 +46,7 @@ class CreateFranceConnectInformation < ActiveRecord::Migration
|
|||
add_column :users, :france_connect_particulier_id, :string
|
||||
|
||||
FranceConnectInformation.all.each do |fci|
|
||||
User.find(fci.user_id).update({
|
||||
User.find(fci.user_id).update_attributes({
|
||||
gender: fci.gender,
|
||||
given_name: fci.given_name,
|
||||
family_name: fci.family_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue