summary roughed in
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class Candidate < ApplicationRecord
|
||||
belongs_to :quiz
|
||||
has_many :questions, through: :quiz
|
||||
has_many :questions, -> { order("sort") }, through: :quiz
|
||||
has_many :answers
|
||||
belongs_to :recruiter, class_name: "User"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
class Quiz < ApplicationRecord
|
||||
has_many :questions
|
||||
has_many :questions, -> { order(:sort) }
|
||||
has_many :candidates
|
||||
end
|
||||
|
Reference in New Issue
Block a user