Skip to content

Commit

Permalink
Corrige des noms techniques
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneCharignon authored and marouria committed Mar 30, 2023
1 parent 7969f06 commit 88177dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/donnee_sociodemographique.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class DonneeSociodemographique < ApplicationRecord

GENRES = %w[homme femme autre].freeze
enum :genre, GENRES.zip(GENRES).to_h
NIVEAUX_ETUDES = %w[pas_etude college cfg_dnb cap_bep bac
NIVEAUX_ETUDES = %w[pas_etudie college cfg_dnb cap_bep bac
bac_plus2 superieur_bac_plus2].freeze
enum :dernier_niveau_etude, NIVEAUX_ETUDES.zip(NIVEAUX_ETUDES).to_h
SITUATIONS = %w[scolarisation formation_professionnelle alternance en_emploi
Expand Down
4 changes: 2 additions & 2 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
]
end

derniere_situtation = QuestionQcm.find_or_create_by(nom_technique: 'derniere_situtation') do |question|
derniere_situation = QuestionQcm.find_or_create_by(nom_technique: 'derniere_situation') do |question|
question.libelle = 'Dernière situation'
question.intitule = 'Quelle était votre dernière situation ?'
question.choix = [
Expand All @@ -220,5 +220,5 @@

Questionnaire.find_or_create_by(nom_technique: 'sociodemographique_autopositionnement') do |questionnaire|
questionnaire.libelle='Sociodémographique et autopositionnement'
questionnaire.questions = [age, genre, langue_maternelle, lieu_scolarite, niveau_etude, derniere_situtation]
questionnaire.questions = [age, genre, langue_maternelle, lieu_scolarite, niveau_etude, derniere_situation]
end

0 comments on commit 88177dd

Please sign in to comment.