|
|
@ -1,6 +1,6 @@
|
|
|
|
class ExerciseBankQuestion < ApplicationRecord
|
|
|
|
class ExerciseBankQuestion < ApplicationRecord
|
|
|
|
belongs_to :exercise_bank
|
|
|
|
belongs_to :exercise_bank
|
|
|
|
belongs_to :shixun
|
|
|
|
belongs_to :shixun, optional: true
|
|
|
|
has_many :exercise_bank_shixun_challenges,:dependent => :destroy
|
|
|
|
has_many :exercise_bank_shixun_challenges,:dependent => :destroy
|
|
|
|
has_many :exercise_bank_choices, :dependent => :destroy
|
|
|
|
has_many :exercise_bank_choices, :dependent => :destroy
|
|
|
|
has_many :exercise_bank_standard_answers, :dependent => :destroy
|
|
|
|
has_many :exercise_bank_standard_answers, :dependent => :destroy
|
|
|
|