summaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 21:30:30 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 21:30:30 -0500
commit5f8baf6334f427506193ea8efd1356812468e191 (patch)
tree216b749f9d589739eefa69e02122ed60654a2d9b /generate.sh
parent7bcd854443e368806cf1f4ece562c157db723d1a (diff)
parentc9f2abad7b9c967e23ed2b2867d426eb27f61387 (diff)
Merge branch 'clean'
Conflicts: app/controllers/tournaments_controller.rb
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/generate.sh b/generate.sh
index db9e84b..22c6f4a 100755
--- a/generate.sh
+++ b/generate.sh
@@ -39,10 +39,12 @@ bundle exec rails generate model server_settings $NOTEST
bundle exec rails generate model tournament_option tournament:references vartype:integer name:string value:text $NOTEST
bundle exec rails generate model game_option vartype:integer name:string default:text $NOTEST
bundle exec rails generate model score user:references match:references value:integer $NOTEST
-# Bridge Models
-bundle exec rails generate model user_team_pair user:references team:references $NOTEST
-bundle exec rails generate model user_tournament_pair user:references tournament:references
-bundle exec rails generate model team_match_pair team:references match:references $NOTEST
+
+# Join tables
+bundle exec rails generate migration CreateTournamentPlayersJoinTable users tournaments
+bundle exec rails generate migration CreateTournamentHostsJoinTable users tournaments
+bundle exec rails generate migration CreateUserTeamJoinTable users matches
+bundle exec rails generate migration CreateMatchTeamJoinTable matches teams
# Just controllers
bundle exec rails generate controller search $NOTEST