From 13a8e4dafd8e548b5ee1a9354652dac2f139f146 Mon Sep 17 00:00:00 2001 From: Nelson Jovel Date: Wed, 20 Nov 2024 15:41:42 -0800 Subject: [PATCH] fix: enum format in question.rb --- app/models/legacy/question.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/legacy/question.rb b/app/models/legacy/question.rb index 4399fe40..c0a93efc 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_", "")