summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index 83d2e7b..7dacae5 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -1,4 +1,8 @@
class Match < ActiveRecord::Base
belongs_to :tournament
+
has_and_belongs_to_many :teams
+
+ belongs_to :winner
+
end