summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-22 02:18:48 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-22 02:18:48 -0400
commit07476fd9a2b942e8d6056804bb1cdbd5e9a1c528 (patch)
treea3e0642ae64bef2bdda4b359f6712d5b09c5a70a /app/models
parent96274bb53465d90632908ebc2f8fd9811d7a5bcb (diff)
run ./generate.sh
Diffstat (limited to 'app/models')
-rw-r--r--app/models/match.rb2
-rw-r--r--app/models/statistic.rb (renamed from app/models/score.rb)2
-rw-r--r--app/models/tournament_stage.rb3
3 files changed, 5 insertions, 2 deletions
diff --git a/app/models/match.rb b/app/models/match.rb
index fe68d31..b5f539b 100644
--- a/app/models/match.rb
+++ b/app/models/match.rb
@@ -1,4 +1,4 @@
class Match < ActiveRecord::Base
- belongs_to :tournament
+ belongs_to :tournament_stage
belongs_to :winner
end
diff --git a/app/models/score.rb b/app/models/statistic.rb
index 11ee9a6..341fd9d 100644
--- a/app/models/score.rb
+++ b/app/models/statistic.rb
@@ -1,4 +1,4 @@
-class Score < ActiveRecord::Base
+class Statistic < ActiveRecord::Base
belongs_to :user
belongs_to :match
end
diff --git a/app/models/tournament_stage.rb b/app/models/tournament_stage.rb
new file mode 100644
index 0000000..205c8cc
--- /dev/null
+++ b/app/models/tournament_stage.rb
@@ -0,0 +1,3 @@
+class TournamentStage < ActiveRecord::Base
+ belongs_to :tournament
+end