diff --git a/app/models/legacy/question.rb b/app/models/legacy/question.rb index a1a39ca7..d96fd4f3 100644 --- a/app/models/legacy/question.rb +++ b/app/models/legacy/question.rb @@ -25,7 +25,7 @@ module Legacy scope :for_category, ->(category) { where(category:) } scope :created_in, ->(year) { where("extract(year from #{table_name}.created_at) = ?", year) } - enum target_group: %i[unknown for_students for_teachers for_parents] + enum :target_group, %i[unknown for_students for_teachers for_parents] def source target_group.gsub('for_', '')