summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgenerate.sh32
1 files changed, 17 insertions, 15 deletions
diff --git a/generate.sh b/generate.sh
index 07a7688..2bf027a 100755
--- a/generate.sh
+++ b/generate.sh
@@ -10,25 +10,27 @@
# To Clear the Generated Files:
# git clean -df
#
+NOTEST='--skip-test-unit'
set -x
-bundle exec rails generate scaffold server
-bundle exec rails generate scaffold tournament game:references
-bundle exec rails generate scaffold match tournament:references
-bundle exec rails generate scaffold team
-bundle exec rails generate scaffold user name:text pw_hash:text groups:integer
-bundle exec rails generate model user_team_pair user:references team:references
-bundle exec rails generate model team_match_pair team:references match:references
-bundle exec rails generate scaffold alert author:references message:text
-bundle exec rails generate scaffold pm author:references recipient:references message:text
-bundle exec rails generate scaffold game name:text players_per_team:integer teams_per_match:integer set_rounds:integer randomized_teams:integer
-bundle exec rails generate model game_attribute game:references key:text type:integer
-bundle exec rails generate model server_settings
-bundle exec rails generate controller search
-bundle exec rails generate controller main
+bundle exec rails generate scaffold server $NOTEST
+bundle exec rails generate scaffold tournament game:references $NOTEST
+bundle exec rails generate scaffold match tournament:references $NOTEST
+bundle exec rails generate scaffold team $NOTEST
+bundle exec rails generate controller users $NOTEST
+bundle exec rails generate model user name:string email:string user_name:string $NOTEST
+bundle exec rails generate model user_team_pair user:references team:references $NOTEST
+bundle exec rails generate model team_match_pair team:references match:references $NOTEST
+bundle exec rails generate scaffold alert author:references message:text $NOTEST
+bundle exec rails generate scaffold pm author:references recipient:references message:text $NOTEST
+bundle exec rails generate scaffold game name:text players_per_team:integer teams_per_match:integer set_rounds:integer randomized_teams:integer $NOTEST
+bundle exec rails generate model game_attribute game:references key:text type:integer $NOTEST
+bundle exec rails generate model server_settings $NOTEST
+bundle exec rails generate controller search $NOTEST
+bundle exec rails generate controller main $NOTEST
#for the tournament controller to generate options
-bundle exec rails generate model tournament_options
+bundle exec rails generate model tournament_option $NOTEST
bundle exec rake db:drop RAILS_ENV=development
bundle exec rake db:migrate RAILS_ENV=development