summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-21 10:34:13 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-21 10:34:13 -0400
commit73576f4dd2e0115d3e78839b398e784a7ff9667a (patch)
tree070f5147e88372d5e6d6e5158ed878f361d34501
parent493c2528076076beae43b2574493ed3955c38f4b (diff)
normalize field names between {game,tournament}_setting
-rwxr-xr-xgenerate.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/generate.sh b/generate.sh
index 059d3f8..ce9bcd5 100755
--- a/generate.sh
+++ b/generate.sh
@@ -40,8 +40,9 @@ bundle exec rails generate scaffold bracket user:references tournament:reference
# Just models
bundle exec rails generate model server_setting
-bundle exec rails generate model game_setting game:references stype:integer name:string default:text description:text type_opt:text display_order:integer
-bundle exec rails generate model tournament_setting tournament:references vartype:integer name:string value:text
+bundle exec rails generate model game_setting game:references name:string vartype:integer type_opt:text description:text display_order:integer default:text
+bundle exec rails generate model tournament_setting tournament:references name:string vartype:integer type_opt:text description:text display_order:integer value:text
+
bundle exec rails generate model score user:references match:references value:integer
bundle exec rails generate model remote_username game:references user:references json_value:text
bundle exec rails generate model bracket_match bracket:references match:references predicted_winner:references