summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-02-20 17:13:51 -0500
commitcd1fabe40ca4d290df33a2590f3a1f2072103972 (patch)
tree98afd236e1d14e892602304e739fc65d450a43fd /app/models
parentc14d0327a631a4321464c7c1e250d75458e13f49 (diff)
fix datatype names in generate.sh
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