summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorDavisLWebb <davislwebb@ymail.com>2014-03-02 15:59:50 -0500
committerDavisLWebb <davislwebb@ymail.com>2014-03-02 15:59:50 -0500
commiteaf3d3cddf418c560c9619f722ea1dbc5d6cc61a (patch)
tree85d2e147a410ae528425595282aa4d7235152df8 /app/models
parentb677983475513c78108406901fccd5cbe9604ca6 (diff)
currently adding Session controller and view
Diffstat (limited to 'app/models')
-rw-r--r--app/models/alert.rb3
-rw-r--r--app/models/game.rb2
-rw-r--r--app/models/game_attribute.rb3
-rw-r--r--app/models/match.rb3
-rw-r--r--app/models/pm.rb4
-rw-r--r--app/models/server.rb2
-rw-r--r--app/models/server_settings.rb2
-rw-r--r--app/models/team.rb2
-rw-r--r--app/models/team_match_pair.rb4
-rw-r--r--app/models/tournament.rb3
-rw-r--r--app/models/tournament_option.rb2
-rw-r--r--app/models/user.rb2
-rw-r--r--app/models/user_team_pair.rb4
13 files changed, 36 insertions, 0 deletions
diff --git a/app/models/alert.rb b/app/models/alert.rb
new file mode 100644
index 0000000..343c269
--- /dev/null
+++ b/app/models/alert.rb
@@ -0,0 +1,3 @@
+class Alert < ActiveRecord::Base
+ belongs_to :author
+end
diff --git a/app/models/game.rb b/app/models/game.rb
new file mode 100644
index 0000000..a181c26
--- /dev/null
+++ b/app/models/game.rb
@@ -0,0 +1,2 @@
+class Game < ActiveRecord::Base
+end
diff --git a/app/models/game_attribute.rb b/app/models/game_attribute.rb
new file mode 100644
index 0000000..c12723b
--- /dev/null
+++ b/app/models/game_attribute.rb
@@ -0,0 +1,3 @@
+class GameAttribute < ActiveRecord::Base
+ belongs_to :game
+end
diff --git a/app/models/match.rb b/app/models/match.rb
new file mode 100644
index 0000000..533435a
--- /dev/null
+++ b/app/models/match.rb
@@ -0,0 +1,3 @@
+class Match < ActiveRecord::Base
+ belongs_to :tournament
+end
diff --git a/app/models/pm.rb b/app/models/pm.rb
new file mode 100644
index 0000000..ab5af3b
--- /dev/null
+++ b/app/models/pm.rb
@@ -0,0 +1,4 @@
+class Pm < ActiveRecord::Base
+ belongs_to :author
+ belongs_to :recipient
+end
diff --git a/app/models/server.rb b/app/models/server.rb
new file mode 100644
index 0000000..120f0fa
--- /dev/null
+++ b/app/models/server.rb
@@ -0,0 +1,2 @@
+class Server < ActiveRecord::Base
+end
diff --git a/app/models/server_settings.rb b/app/models/server_settings.rb
new file mode 100644
index 0000000..7f49863
--- /dev/null
+++ b/app/models/server_settings.rb
@@ -0,0 +1,2 @@
+class ServerSettings < ActiveRecord::Base
+end
diff --git a/app/models/team.rb b/app/models/team.rb
new file mode 100644
index 0000000..fa7ba9e
--- /dev/null
+++ b/app/models/team.rb
@@ -0,0 +1,2 @@
+class Team < ActiveRecord::Base
+end
diff --git a/app/models/team_match_pair.rb b/app/models/team_match_pair.rb
new file mode 100644
index 0000000..85f8eaa
--- /dev/null
+++ b/app/models/team_match_pair.rb
@@ -0,0 +1,4 @@
+class TeamMatchPair < ActiveRecord::Base
+ belongs_to :team
+ belongs_to :match
+end
diff --git a/app/models/tournament.rb b/app/models/tournament.rb
new file mode 100644
index 0000000..cc915a0
--- /dev/null
+++ b/app/models/tournament.rb
@@ -0,0 +1,3 @@
+class Tournament < ActiveRecord::Base
+ belongs_to :game
+end
diff --git a/app/models/tournament_option.rb b/app/models/tournament_option.rb
new file mode 100644
index 0000000..950b351
--- /dev/null
+++ b/app/models/tournament_option.rb
@@ -0,0 +1,2 @@
+class TournamentOption < ActiveRecord::Base
+end
diff --git a/app/models/user.rb b/app/models/user.rb
new file mode 100644
index 0000000..4a57cf0
--- /dev/null
+++ b/app/models/user.rb
@@ -0,0 +1,2 @@
+class User < ActiveRecord::Base
+end
diff --git a/app/models/user_team_pair.rb b/app/models/user_team_pair.rb
new file mode 100644
index 0000000..c55dc2e
--- /dev/null
+++ b/app/models/user_team_pair.rb
@@ -0,0 +1,4 @@
+class UserTeamPair < ActiveRecord::Base
+ belongs_to :user
+ belongs_to :team
+end