From cd1fabe40ca4d290df33a2590f3a1f2072103972 Mon Sep 17 00:00:00 2001 From: DavisLWebb Date: Thu, 20 Feb 2014 17:13:51 -0500 Subject: fix datatype names in generate.sh --- db/migrate/20140304014808_create_servers.rb | 8 -- db/migrate/20140304014810_create_tournaments.rb | 8 -- db/migrate/20140304014812_create_matches.rb | 9 --- db/migrate/20140304014814_create_teams.rb | 8 -- db/migrate/20140304014816_create_users.rb | 11 --- .../20140304014819_create_user_team_pairs.rb | 10 --- .../20140304014821_create_team_match_pairs.rb | 10 --- db/migrate/20140304014823_create_alerts.rb | 10 --- db/migrate/20140304014825_create_pms.rb | 11 --- .../20140304014827_create_server_settings.rb | 8 -- db/migrate/20140304014838_create_servers.rb | 8 ++ db/migrate/20140304014840_create_tournaments.rb | 8 ++ db/migrate/20140304014842_create_matches.rb | 9 +++ db/migrate/20140304014844_create_teams.rb | 8 ++ db/migrate/20140304014846_create_users.rb | 11 +++ .../20140304014848_create_user_team_pairs.rb | 10 +++ .../20140304014850_create_team_match_pairs.rb | 10 +++ db/migrate/20140304014852_create_alerts.rb | 10 +++ db/migrate/20140304014855_create_pms.rb | 11 +++ .../20140304014857_create_server_settings.rb | 8 ++ db/schema.rb | 92 ++++++++++++++++++++++ 21 files changed, 185 insertions(+), 93 deletions(-) delete mode 100644 db/migrate/20140304014808_create_servers.rb delete mode 100644 db/migrate/20140304014810_create_tournaments.rb delete mode 100644 db/migrate/20140304014812_create_matches.rb delete mode 100644 db/migrate/20140304014814_create_teams.rb delete mode 100644 db/migrate/20140304014816_create_users.rb delete mode 100644 db/migrate/20140304014819_create_user_team_pairs.rb delete mode 100644 db/migrate/20140304014821_create_team_match_pairs.rb delete mode 100644 db/migrate/20140304014823_create_alerts.rb delete mode 100644 db/migrate/20140304014825_create_pms.rb delete mode 100644 db/migrate/20140304014827_create_server_settings.rb create mode 100644 db/migrate/20140304014838_create_servers.rb create mode 100644 db/migrate/20140304014840_create_tournaments.rb create mode 100644 db/migrate/20140304014842_create_matches.rb create mode 100644 db/migrate/20140304014844_create_teams.rb create mode 100644 db/migrate/20140304014846_create_users.rb create mode 100644 db/migrate/20140304014848_create_user_team_pairs.rb create mode 100644 db/migrate/20140304014850_create_team_match_pairs.rb create mode 100644 db/migrate/20140304014852_create_alerts.rb create mode 100644 db/migrate/20140304014855_create_pms.rb create mode 100644 db/migrate/20140304014857_create_server_settings.rb create mode 100644 db/schema.rb (limited to 'db') diff --git a/db/migrate/20140304014808_create_servers.rb b/db/migrate/20140304014808_create_servers.rb deleted file mode 100644 index f33241a..0000000 --- a/db/migrate/20140304014808_create_servers.rb +++ /dev/null @@ -1,8 +0,0 @@ -class CreateServers < ActiveRecord::Migration - def change - create_table :servers do |t| - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014810_create_tournaments.rb b/db/migrate/20140304014810_create_tournaments.rb deleted file mode 100644 index 2095590..0000000 --- a/db/migrate/20140304014810_create_tournaments.rb +++ /dev/null @@ -1,8 +0,0 @@ -class CreateTournaments < ActiveRecord::Migration - def change - create_table :tournaments do |t| - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014812_create_matches.rb b/db/migrate/20140304014812_create_matches.rb deleted file mode 100644 index 288ce6a..0000000 --- a/db/migrate/20140304014812_create_matches.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateMatches < ActiveRecord::Migration - def change - create_table :matches do |t| - t.reference :tournament - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014814_create_teams.rb b/db/migrate/20140304014814_create_teams.rb deleted file mode 100644 index dd8397d..0000000 --- a/db/migrate/20140304014814_create_teams.rb +++ /dev/null @@ -1,8 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014816_create_users.rb b/db/migrate/20140304014816_create_users.rb deleted file mode 100644 index 3723908..0000000 --- a/db/migrate/20140304014816_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.text :name - t.varchar :pw_hash - t.int :groups - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014819_create_user_team_pairs.rb b/db/migrate/20140304014819_create_user_team_pairs.rb deleted file mode 100644 index 3b60212..0000000 --- a/db/migrate/20140304014819_create_user_team_pairs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateUserTeamPairs < ActiveRecord::Migration - def change - create_table :user_team_pairs do |t| - t.reference :user - t.reference :team - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014821_create_team_match_pairs.rb b/db/migrate/20140304014821_create_team_match_pairs.rb deleted file mode 100644 index c489495..0000000 --- a/db/migrate/20140304014821_create_team_match_pairs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateTeamMatchPairs < ActiveRecord::Migration - def change - create_table :team_match_pairs do |t| - t.reference :team - t.reference :match - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014823_create_alerts.rb b/db/migrate/20140304014823_create_alerts.rb deleted file mode 100644 index 6167f33..0000000 --- a/db/migrate/20140304014823_create_alerts.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateAlerts < ActiveRecord::Migration - def change - create_table :alerts do |t| - t.reference :author - t.text :message - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014825_create_pms.rb b/db/migrate/20140304014825_create_pms.rb deleted file mode 100644 index f3b27fb..0000000 --- a/db/migrate/20140304014825_create_pms.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePms < ActiveRecord::Migration - def change - create_table :pms do |t| - t.reference :author - t.reference :recipient - t.text :message - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014827_create_server_settings.rb b/db/migrate/20140304014827_create_server_settings.rb deleted file mode 100644 index dfdd91b..0000000 --- a/db/migrate/20140304014827_create_server_settings.rb +++ /dev/null @@ -1,8 +0,0 @@ -class CreateServerSettings < ActiveRecord::Migration - def change - create_table :server_settings do |t| - - t.timestamps - end - end -end diff --git a/db/migrate/20140304014838_create_servers.rb b/db/migrate/20140304014838_create_servers.rb new file mode 100644 index 0000000..f33241a --- /dev/null +++ b/db/migrate/20140304014838_create_servers.rb @@ -0,0 +1,8 @@ +class CreateServers < ActiveRecord::Migration + def change + create_table :servers do |t| + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014840_create_tournaments.rb b/db/migrate/20140304014840_create_tournaments.rb new file mode 100644 index 0000000..2095590 --- /dev/null +++ b/db/migrate/20140304014840_create_tournaments.rb @@ -0,0 +1,8 @@ +class CreateTournaments < ActiveRecord::Migration + def change + create_table :tournaments do |t| + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014842_create_matches.rb b/db/migrate/20140304014842_create_matches.rb new file mode 100644 index 0000000..6c0c157 --- /dev/null +++ b/db/migrate/20140304014842_create_matches.rb @@ -0,0 +1,9 @@ +class CreateMatches < ActiveRecord::Migration + def change + create_table :matches do |t| + t.references :tournament, index: true + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014844_create_teams.rb b/db/migrate/20140304014844_create_teams.rb new file mode 100644 index 0000000..dd8397d --- /dev/null +++ b/db/migrate/20140304014844_create_teams.rb @@ -0,0 +1,8 @@ +class CreateTeams < ActiveRecord::Migration + def change + create_table :teams do |t| + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014846_create_users.rb b/db/migrate/20140304014846_create_users.rb new file mode 100644 index 0000000..6a500e5 --- /dev/null +++ b/db/migrate/20140304014846_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration + def change + create_table :users do |t| + t.text :name + t.text :pw_hash + t.integer :groups + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014848_create_user_team_pairs.rb b/db/migrate/20140304014848_create_user_team_pairs.rb new file mode 100644 index 0000000..2c492ac --- /dev/null +++ b/db/migrate/20140304014848_create_user_team_pairs.rb @@ -0,0 +1,10 @@ +class CreateUserTeamPairs < ActiveRecord::Migration + def change + create_table :user_team_pairs do |t| + t.references :user, index: true + t.references :team, index: true + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014850_create_team_match_pairs.rb b/db/migrate/20140304014850_create_team_match_pairs.rb new file mode 100644 index 0000000..8fac07e --- /dev/null +++ b/db/migrate/20140304014850_create_team_match_pairs.rb @@ -0,0 +1,10 @@ +class CreateTeamMatchPairs < ActiveRecord::Migration + def change + create_table :team_match_pairs do |t| + t.references :team, index: true + t.references :match, index: true + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014852_create_alerts.rb b/db/migrate/20140304014852_create_alerts.rb new file mode 100644 index 0000000..68a8e10 --- /dev/null +++ b/db/migrate/20140304014852_create_alerts.rb @@ -0,0 +1,10 @@ +class CreateAlerts < ActiveRecord::Migration + def change + create_table :alerts do |t| + t.references :author, index: true + t.text :message + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014855_create_pms.rb b/db/migrate/20140304014855_create_pms.rb new file mode 100644 index 0000000..93bb5c6 --- /dev/null +++ b/db/migrate/20140304014855_create_pms.rb @@ -0,0 +1,11 @@ +class CreatePms < ActiveRecord::Migration + def change + create_table :pms do |t| + t.references :author, index: true + t.references :recipient, index: true + t.text :message + + t.timestamps + end + end +end diff --git a/db/migrate/20140304014857_create_server_settings.rb b/db/migrate/20140304014857_create_server_settings.rb new file mode 100644 index 0000000..dfdd91b --- /dev/null +++ b/db/migrate/20140304014857_create_server_settings.rb @@ -0,0 +1,8 @@ +class CreateServerSettings < ActiveRecord::Migration + def change + create_table :server_settings do |t| + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..88dfa1a --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,92 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema.define(version: 20140304014857) do + + create_table "alerts", force: true do |t| + t.integer "author_id" + t.text "message" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "alerts", ["author_id"], name: "index_alerts_on_author_id" + + create_table "matches", force: true do |t| + t.integer "tournament_id" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "matches", ["tournament_id"], name: "index_matches_on_tournament_id" + + create_table "pms", force: true do |t| + t.integer "author_id" + t.integer "recipient_id" + t.text "message" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "pms", ["author_id"], name: "index_pms_on_author_id" + add_index "pms", ["recipient_id"], name: "index_pms_on_recipient_id" + + create_table "server_settings", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "servers", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "team_match_pairs", force: true do |t| + t.integer "team_id" + t.integer "match_id" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "team_match_pairs", ["match_id"], name: "index_team_match_pairs_on_match_id" + add_index "team_match_pairs", ["team_id"], name: "index_team_match_pairs_on_team_id" + + create_table "teams", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "tournaments", force: true do |t| + t.datetime "created_at" + t.datetime "updated_at" + end + + create_table "user_team_pairs", force: true do |t| + t.integer "user_id" + t.integer "team_id" + t.datetime "created_at" + t.datetime "updated_at" + end + + add_index "user_team_pairs", ["team_id"], name: "index_user_team_pairs_on_team_id" + add_index "user_team_pairs", ["user_id"], name: "index_user_team_pairs_on_user_id" + + create_table "users", force: true do |t| + t.text "name" + t.text "pw_hash" + t.integer "groups" + t.datetime "created_at" + t.datetime "updated_at" + end + +end -- cgit v1.2.3-2-g168b