7 lines
236 B
7 lines
236 B
6 years ago
|
class ChallengeChoose < ApplicationRecord
|
||
|
default_scope {order("position asc")}
|
||
|
belongs_to :challenge, optional: true
|
||
|
has_many :challenge_tags, :dependent => :destroy
|
||
|
has_many :challenge_questions, dependent: :destroy
|
||
|
end
|