You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/models/exercise_shixun_challenge.rb

9 lines
249 B

6 years ago
class ExerciseShixunChallenge < ApplicationRecord
belongs_to :challenge
belongs_to :shixun
belongs_to :exercise_question
has_many :exercise_shixun_answers, :dependent => :destroy
scope :cha_id_find, lambda {|id| where(id:id)}
end