educoder/app/models/game_code.rb

8 lines
174 B

class GameCode < ApplicationRecord
belongs_to :game
# 按关卡路径搜索
scope :search_challenge_path, lambda { |cha_path| where("path = ?",cha_path) }
end