[#880] New Data Base schema to manage the new procedure system
This commit is contained in:
parent
cb2786bb33
commit
5f3a320f2f
9 changed files with 68 additions and 1007 deletions
12
db/seeds.rb
12
db/seeds.rb
|
@ -8,9 +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"
|
||||
# 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