diff options
Diffstat (limited to 'app/models/game.rb')
-rw-r--r-- | app/models/game.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/game.rb b/app/models/game.rb index 345877e..5f4c46d 100644 --- a/app/models/game.rb +++ b/app/models/game.rb @@ -1,3 +1,5 @@ class Game < ActiveRecord::Base + belongs_to :parent, class_name: "Game" + has_many :children, class_name: "Game" has_many :settings, class_name: "GameSetting" end |