summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-03-06 17:25:40 -0500
committerguntasgrewal <guntasgrewal@gmail.com>2014-03-06 17:25:40 -0500
commitf5d36fc67d1994b7cc1ce02e7be2767ffcb47857 (patch)
tree03afe3bea27d2963525d7509690ec6b39e5648f9 /app/models
parentd0545c2820d101a98b3c895cf6e3691145a62f3c (diff)
new generate
Diffstat (limited to 'app/models')
-rw-r--r--app/models/game_attribute.rb3
-rw-r--r--app/models/game_option.rb2
-rw-r--r--app/models/score.rb4
-rw-r--r--app/models/team.rb1
-rw-r--r--app/models/tournament_option.rb1
-rw-r--r--app/models/tournament_user_pair.rb4
6 files changed, 12 insertions, 3 deletions
diff --git a/app/models/game_attribute.rb b/app/models/game_attribute.rb
deleted file mode 100644
index c12723b..0000000
--- a/app/models/game_attribute.rb
+++ /dev/null
@@ -1,3 +0,0 @@
-class GameAttribute < ActiveRecord::Base
- belongs_to :game
-end
diff --git a/app/models/game_option.rb b/app/models/game_option.rb
new file mode 100644
index 0000000..bdc5560
--- /dev/null
+++ b/app/models/game_option.rb
@@ -0,0 +1,2 @@
+class GameOption < ActiveRecord::Base
+end
diff --git a/app/models/score.rb b/app/models/score.rb
new file mode 100644
index 0000000..a9b9c71
--- /dev/null
+++ b/app/models/score.rb
@@ -0,0 +1,4 @@
+class Score < ActiveRecord::Base
+ belongs_to :user
+ belongs_to :match
+end
diff --git a/app/models/team.rb b/app/models/team.rb
index fa7ba9e..9e71557 100644
--- a/app/models/team.rb
+++ b/app/models/team.rb
@@ -1,2 +1,3 @@
class Team < ActiveRecord::Base
+ belongs_to :match
end
diff --git a/app/models/tournament_option.rb b/app/models/tournament_option.rb
index 950b351..242a6f6 100644
--- a/app/models/tournament_option.rb
+++ b/app/models/tournament_option.rb
@@ -1,2 +1,3 @@
class TournamentOption < ActiveRecord::Base
+ belongs_to :tournament
end
diff --git a/app/models/tournament_user_pair.rb b/app/models/tournament_user_pair.rb
new file mode 100644
index 0000000..eb4e9c5
--- /dev/null
+++ b/app/models/tournament_user_pair.rb
@@ -0,0 +1,4 @@
+class TournamentUserPair < ActiveRecord::Base
+ belongs_to :tournament
+ belongs_to :user
+end