summaryrefslogtreecommitdiff
path: root/app/models/game.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/game.rb')
-rw-r--r--app/models/game.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/game.rb b/app/models/game.rb
index 13520ac..5f4c46d 100644
--- a/app/models/game.rb
+++ b/app/models/game.rb
@@ -1,3 +1,5 @@
class Game < ActiveRecord::Base
- belongs_to :parent
+ belongs_to :parent, class_name: "Game"
+ has_many :children, class_name: "Game"
+ has_many :settings, class_name: "GameSetting"
end