Skip to content

Commit

Permalink
Merge pull request #83 from hitobito/fix/redunant_global_questions
Browse files Browse the repository at this point in the history
fix: prevent global questions from being seeded multiple times
  • Loading branch information
diegosteiner authored Sep 18, 2024
2 parents 8316f2e + e6da749 commit 702a21a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions db/seeds/event_questions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# or later. See the COPYING file at the top-level directory or at
# https://github.com/hitobito/hitobito_jubla.

Event::Question.create_with_translations([
{
Event::Question.seed_global({
disclosure: nil, # Has to be chosen for every event
event_type: nil, # Is derived for every event
type: Event::Question::AhvNumber.sti_name,
Expand All @@ -16,5 +15,4 @@
{ locale: 'it', question: 'Numero AVS?' },
{ locale: 'en', question: 'AVS number?' }
]
},
])
})

0 comments on commit 702a21a

Please sign in to comment.