因此,我有以下表格:
class Game
belongs_to :player0, :class => "Player"
belongs_to :player1, :class => "Player"
end
class Player
belongs_to :user
end
class User
#has a field called race
end
现在需要问:
Find all Games where player0.user.race is "x" and player1.user.race is "y" OR player0.user.race is "y" and player1.user.race is "x".
我刚刚开始使用铁路。 3. 我可以很容易地用斜体字书写问话,但我只读一下。