add new form in seeds
This commit is contained in:
parent
54b4679d19
commit
9e642e54ce
3 changed files with 945 additions and 932 deletions
|
@ -8,5 +8,9 @@
|
|||
|
||||
Dir[File.join(Rails.root, 'db', 'seeds', '*.rb')].sort.each { |seed| load seed }
|
||||
|
||||
|
||||
|
||||
puts "create links"
|
||||
TypePieceJointe.find_each do |type_piece_jointe|
|
||||
forms = Formulaire.find_by_demarche_id(type_piece_jointe.CERFA)
|
||||
type_piece_jointe.update_attributes(formulaire_id: forms.id) unless forms.nil?
|
||||
end
|
||||
puts "end links creation"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue