summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/alert.rb1
-rw-r--r--app/models/match.rb1
-rw-r--r--app/models/pm.rb2
-rw-r--r--app/models/team_match_pair.rb2
-rw-r--r--app/models/user_team_pair.rb2
5 files changed, 8 insertions, 0 deletions
diff --git a/app/models/alert.rb b/app/models/alert.rb
index e61a702..343c269 100644
--- a/app/models/alert.rb
+++ b/app/models/alert.rb
@@ -1,2 +1,3 @@
class Alert < ActiveRecord::Base
+ belongs_to :author
end
diff --git a/app/models/match.rb b/app/models/match.rb
index 0836114..533435a 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -1,2 +1,3 @@
class Match < ActiveRecord::Base
+ belongs_to :tournament
end
diff --git a/app/models/pm.rb b/app/models/pm.rb
index 24d6eb4..ab5af3b 100644
--- a/app/models/pm.rb
+++ b/app/models/pm.rb
@@ -1,2 +1,4 @@
class Pm < ActiveRecord::Base
+ belongs_to :author
+ belongs_to :recipient
end
diff --git a/app/models/team_match_pair.rb b/app/models/team_match_pair.rb
index 24a4e86..85f8eaa 100644
--- a/app/models/team_match_pair.rb
+++ b/app/models/team_match_pair.rb
@@ -1,2 +1,4 @@
class TeamMatchPair < ActiveRecord::Base
+ belongs_to :team
+ belongs_to :match
end
diff --git a/app/models/user_team_pair.rb b/app/models/user_team_pair.rb
index 7694996..c55dc2e 100644
--- a/app/models/user_team_pair.rb
+++ b/app/models/user_team_pair.rb
@@ -1,2 +1,4 @@
class UserTeamPair < ActiveRecord::Base
+ belongs_to :user
+ belongs_to :team
end