summaryrefslogtreecommitdiff
path: root/app/models/match.rb
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-06 23:29:40 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-06 23:29:40 -0400
commit2d097c71a32646fce3b90608cbffde9992c979ef (patch)
tree83c8fd34674d789a14f0ce5dc92655deeaaacf4a /app/models/match.rb
parent628173fce3de8f5d3e31109b3aa7c964fdab38ca (diff)
holy shit matches actually move forward
Diffstat (limited to 'app/models/match.rb')
-rw-r--r--app/models/match.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index c596ced..48d6b83 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -1,6 +1,6 @@
class Match < ActiveRecord::Base
belongs_to :tournament
-
+ has_many :scores
has_and_belongs_to_many :teams
belongs_to :winner, class_name: "Team"