summaryrefslogtreecommitdiff
path: root/app/models/game.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-23 22:50:48 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-23 22:50:48 -0400
commit41a93fad32677e3f351c0e16f0c704cbfbc5404e (patch)
treeaa46c550dbd15a1f0bb0faf4e8eebb92c4970bdd /app/models/game.rb
parent19b04a49d01af1917385c166501ef086eddae437 (diff)
parent47be7c86ca5193ffe4331fbb9358a9171abe748b (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models/game.rb')
-rw-r--r--app/models/game.rb2
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