mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
year scope for school_questions
This commit is contained in:
parent
2a29b20804
commit
d324d53bd2
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ class SchoolQuestion < ApplicationRecord
|
|||
validates_associated :school_category
|
||||
|
||||
scope :for, -> (school, question) { where(school_id: school.id, question_id: question.id) }
|
||||
scope :in, -> (year) { where(year: year) }
|
||||
|
||||
def sync_attempts
|
||||
attempt_data = Attempt.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue