diff --git a/db/seeds/event_questions.rb b/db/seeds/event_questions.rb index 358c6fb..c45bf8e 100644 --- a/db/seeds/event_questions.rb +++ b/db/seeds/event_questions.rb @@ -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, @@ -16,5 +15,4 @@ { locale: 'it', question: 'Numero AVS?' }, { locale: 'en', question: 'AVS number?' } ] - }, -]) + })