mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
fix: enum format in question.rb
This commit is contained in:
parent
e62d909896
commit
13a8e4dafd
1 changed files with 1 additions and 1 deletions
|
|
@ -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_", "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue