summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 16:59:04 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-02-27 16:59:04 -0500
commit3a7b14f4a51c0fdb8b71720f361a0a8ccf080325 (patch)
treeb677c4e56d96dfc872ae58d0d0e45d8243750441 /db
parent8e3e88f52c1f2d73acdcb7fdf60326b5f7717068 (diff)
add game types
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140304015013_create_servers.rb (renamed from db/migrate/20140304014940_create_servers.rb)0
-rw-r--r--db/migrate/20140304015015_create_tournaments.rb (renamed from db/migrate/20140304014942_create_tournaments.rb)0
-rw-r--r--db/migrate/20140304015017_create_matches.rb (renamed from db/migrate/20140304014944_create_matches.rb)0
-rw-r--r--db/migrate/20140304015019_create_teams.rb (renamed from db/migrate/20140304014946_create_teams.rb)0
-rw-r--r--db/migrate/20140304015021_create_users.rb (renamed from db/migrate/20140304014948_create_users.rb)0
-rw-r--r--db/migrate/20140304015023_create_user_team_pairs.rb (renamed from db/migrate/20140304014950_create_user_team_pairs.rb)0
-rw-r--r--db/migrate/20140304015026_create_team_match_pairs.rb (renamed from db/migrate/20140304014952_create_team_match_pairs.rb)0
-rw-r--r--db/migrate/20140304015028_create_alerts.rb (renamed from db/migrate/20140304014954_create_alerts.rb)0
-rw-r--r--db/migrate/20140304015030_create_pms.rb (renamed from db/migrate/20140304014957_create_pms.rb)0
-rw-r--r--db/migrate/20140304015032_create_games.rb9
-rw-r--r--db/migrate/20140304015034_create_game_attributes.rb11
-rw-r--r--db/migrate/20140304015036_create_server_settings.rb (renamed from db/migrate/20140304014959_create_server_settings.rb)0
-rw-r--r--db/migrate/20140304015042_create_tournament_options.rb (renamed from db/migrate/20140304015005_create_tournament_options.rb)0
-rw-r--r--db/schema.rb18
14 files changed, 37 insertions, 1 deletions
diff --git a/db/migrate/20140304014940_create_servers.rb b/db/migrate/20140304015013_create_servers.rb
index f33241a..f33241a 100644
--- a/db/migrate/20140304014940_create_servers.rb
+++ b/db/migrate/20140304015013_create_servers.rb
diff --git a/db/migrate/20140304014942_create_tournaments.rb b/db/migrate/20140304015015_create_tournaments.rb
index 2095590..2095590 100644
--- a/db/migrate/20140304014942_create_tournaments.rb
+++ b/db/migrate/20140304015015_create_tournaments.rb
diff --git a/db/migrate/20140304014944_create_matches.rb b/db/migrate/20140304015017_create_matches.rb
index 6c0c157..6c0c157 100644
--- a/db/migrate/20140304014944_create_matches.rb
+++ b/db/migrate/20140304015017_create_matches.rb
diff --git a/db/migrate/20140304014946_create_teams.rb b/db/migrate/20140304015019_create_teams.rb
index dd8397d..dd8397d 100644
--- a/db/migrate/20140304014946_create_teams.rb
+++ b/db/migrate/20140304015019_create_teams.rb
diff --git a/db/migrate/20140304014948_create_users.rb b/db/migrate/20140304015021_create_users.rb
index 6a500e5..6a500e5 100644
--- a/db/migrate/20140304014948_create_users.rb
+++ b/db/migrate/20140304015021_create_users.rb
diff --git a/db/migrate/20140304014950_create_user_team_pairs.rb b/db/migrate/20140304015023_create_user_team_pairs.rb
index 2c492ac..2c492ac 100644
--- a/db/migrate/20140304014950_create_user_team_pairs.rb
+++ b/db/migrate/20140304015023_create_user_team_pairs.rb
diff --git a/db/migrate/20140304014952_create_team_match_pairs.rb b/db/migrate/20140304015026_create_team_match_pairs.rb
index 8fac07e..8fac07e 100644
--- a/db/migrate/20140304014952_create_team_match_pairs.rb
+++ b/db/migrate/20140304015026_create_team_match_pairs.rb
diff --git a/db/migrate/20140304014954_create_alerts.rb b/db/migrate/20140304015028_create_alerts.rb
index 68a8e10..68a8e10 100644
--- a/db/migrate/20140304014954_create_alerts.rb
+++ b/db/migrate/20140304015028_create_alerts.rb
diff --git a/db/migrate/20140304014957_create_pms.rb b/db/migrate/20140304015030_create_pms.rb
index 93bb5c6..93bb5c6 100644
--- a/db/migrate/20140304014957_create_pms.rb
+++ b/db/migrate/20140304015030_create_pms.rb
diff --git a/db/migrate/20140304015032_create_games.rb b/db/migrate/20140304015032_create_games.rb
new file mode 100644
index 0000000..fc54709
--- /dev/null
+++ b/db/migrate/20140304015032_create_games.rb
@@ -0,0 +1,9 @@
+class CreateGames < ActiveRecord::Migration
+ def change
+ create_table :games do |t|
+ t.text :name
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20140304015034_create_game_attributes.rb b/db/migrate/20140304015034_create_game_attributes.rb
new file mode 100644
index 0000000..b63f134
--- /dev/null
+++ b/db/migrate/20140304015034_create_game_attributes.rb
@@ -0,0 +1,11 @@
+class CreateGameAttributes < ActiveRecord::Migration
+ def change
+ create_table :game_attributes do |t|
+ t.references :game, index: true
+ t.text :key
+ t.integer :type
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20140304014959_create_server_settings.rb b/db/migrate/20140304015036_create_server_settings.rb
index dfdd91b..dfdd91b 100644
--- a/db/migrate/20140304014959_create_server_settings.rb
+++ b/db/migrate/20140304015036_create_server_settings.rb
diff --git a/db/migrate/20140304015005_create_tournament_options.rb b/db/migrate/20140304015042_create_tournament_options.rb
index d2df22e..d2df22e 100644
--- a/db/migrate/20140304015005_create_tournament_options.rb
+++ b/db/migrate/20140304015042_create_tournament_options.rb
diff --git a/db/schema.rb b/db/schema.rb
index 9d307ae..86afd1b 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20140304015005) do
+ActiveRecord::Schema.define(version: 20140304015042) do
create_table "alerts", force: true do |t|
t.integer "author_id"
@@ -22,6 +22,22 @@ ActiveRecord::Schema.define(version: 20140304015005) do
add_index "alerts", ["author_id"], name: "index_alerts_on_author_id"
+ create_table "game_attributes", force: true do |t|
+ t.integer "game_id"
+ t.text "key"
+ t.integer "type"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "game_attributes", ["game_id"], name: "index_game_attributes_on_game_id"
+
+ create_table "games", force: true do |t|
+ t.text "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
create_table "matches", force: true do |t|
t.integer "tournament_id"
t.datetime "created_at"