summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140410173725_create_simple_captcha_data.rb (renamed from db/migrate/20140407041416_create_simple_captcha_data.rb)0
-rw-r--r--db/migrate/20140410213731_create_delayed_jobs.rb (renamed from db/migrate/20140407081419_create_delayed_jobs.rb)0
-rw-r--r--db/migrate/20140410213738_create_servers.rb (renamed from db/migrate/20140407081422_create_servers.rb)0
-rw-r--r--db/migrate/20140410213745_create_matches.rb (renamed from db/migrate/20140407081425_create_matches.rb)0
-rw-r--r--db/migrate/20140410213752_create_teams.rb (renamed from db/migrate/20140407081427_create_teams.rb)0
-rw-r--r--db/migrate/20140410213758_create_alerts.rb (renamed from db/migrate/20140407081430_create_alerts.rb)0
-rw-r--r--db/migrate/20140410213805_create_pms.rb (renamed from db/migrate/20140407081434_create_pms.rb)0
-rw-r--r--db/migrate/20140410213811_create_tournaments.rb (renamed from db/migrate/20140407081437_create_tournaments.rb)0
-rw-r--r--db/migrate/20140410213818_create_games.rb (renamed from db/migrate/20140407081440_create_games.rb)0
-rw-r--r--db/migrate/20140410213824_create_users.rb (renamed from db/migrate/20140407081443_create_users.rb)0
-rw-r--r--db/migrate/20140410213831_create_sessions.rb (renamed from db/migrate/20140407081446_create_sessions.rb)0
-rw-r--r--db/migrate/20140410213838_create_brackets.rb11
-rw-r--r--db/migrate/20140410213844_create_server_settings.rb (renamed from db/migrate/20140407081449_create_server_settings.rb)0
-rw-r--r--db/migrate/20140410213851_create_game_settings.rb (renamed from db/migrate/20140407081452_create_game_settings.rb)0
-rw-r--r--db/migrate/20140410213857_create_tournament_preferences.rb (renamed from db/migrate/20140407081454_create_tournament_preferences.rb)0
-rw-r--r--db/migrate/20140410213903_create_scores.rb (renamed from db/migrate/20140407081458_create_scores.rb)0
-rw-r--r--db/migrate/20140410213909_create_remote_usernames.rb (renamed from db/migrate/20140407081501_create_remote_usernames.rb)0
-rw-r--r--db/migrate/20140410213916_create_bracket_matches.rb11
-rw-r--r--db/migrate/20140410213922_create_tournament_players_join_table.rb (renamed from db/migrate/20140407081503_create_tournament_players_join_table.rb)0
-rw-r--r--db/migrate/20140410213928_create_tournament_hosts_join_table.rb (renamed from db/migrate/20140407081506_create_tournament_hosts_join_table.rb)0
-rw-r--r--db/migrate/20140410213935_create_team_user_join_table.rb (renamed from db/migrate/20140407081509_create_team_user_join_table.rb)0
-rw-r--r--db/migrate/20140410213941_create_match_team_join_table.rb (renamed from db/migrate/20140407081512_create_match_team_join_table.rb)0
-rw-r--r--db/migrate/20140410214006_add_hidden_attrs_to_user.rb (renamed from db/migrate/20140407081524_add_hidden_attrs_to_user.rb)0
-rw-r--r--db/schema.rb25
24 files changed, 46 insertions, 1 deletions
diff --git a/db/migrate/20140407041416_create_simple_captcha_data.rb b/db/migrate/20140410173725_create_simple_captcha_data.rb
index 4573b20..4573b20 100644
--- a/db/migrate/20140407041416_create_simple_captcha_data.rb
+++ b/db/migrate/20140410173725_create_simple_captcha_data.rb
diff --git a/db/migrate/20140407081419_create_delayed_jobs.rb b/db/migrate/20140410213731_create_delayed_jobs.rb
index ec0dd93..ec0dd93 100644
--- a/db/migrate/20140407081419_create_delayed_jobs.rb
+++ b/db/migrate/20140410213731_create_delayed_jobs.rb
diff --git a/db/migrate/20140407081422_create_servers.rb b/db/migrate/20140410213738_create_servers.rb
index fbe1b02..fbe1b02 100644
--- a/db/migrate/20140407081422_create_servers.rb
+++ b/db/migrate/20140410213738_create_servers.rb
diff --git a/db/migrate/20140407081425_create_matches.rb b/db/migrate/20140410213745_create_matches.rb
index bdeb1cd..bdeb1cd 100644
--- a/db/migrate/20140407081425_create_matches.rb
+++ b/db/migrate/20140410213745_create_matches.rb
diff --git a/db/migrate/20140407081427_create_teams.rb b/db/migrate/20140410213752_create_teams.rb
index fdf9a68..fdf9a68 100644
--- a/db/migrate/20140407081427_create_teams.rb
+++ b/db/migrate/20140410213752_create_teams.rb
diff --git a/db/migrate/20140407081430_create_alerts.rb b/db/migrate/20140410213758_create_alerts.rb
index 68a8e10..68a8e10 100644
--- a/db/migrate/20140407081430_create_alerts.rb
+++ b/db/migrate/20140410213758_create_alerts.rb
diff --git a/db/migrate/20140407081434_create_pms.rb b/db/migrate/20140410213805_create_pms.rb
index 93bb5c6..93bb5c6 100644
--- a/db/migrate/20140407081434_create_pms.rb
+++ b/db/migrate/20140410213805_create_pms.rb
diff --git a/db/migrate/20140407081437_create_tournaments.rb b/db/migrate/20140410213811_create_tournaments.rb
index c0d8929..c0d8929 100644
--- a/db/migrate/20140407081437_create_tournaments.rb
+++ b/db/migrate/20140410213811_create_tournaments.rb
diff --git a/db/migrate/20140407081440_create_games.rb b/db/migrate/20140410213818_create_games.rb
index 5e4f56f..5e4f56f 100644
--- a/db/migrate/20140407081440_create_games.rb
+++ b/db/migrate/20140410213818_create_games.rb
diff --git a/db/migrate/20140407081443_create_users.rb b/db/migrate/20140410213824_create_users.rb
index 8032870..8032870 100644
--- a/db/migrate/20140407081443_create_users.rb
+++ b/db/migrate/20140410213824_create_users.rb
diff --git a/db/migrate/20140407081446_create_sessions.rb b/db/migrate/20140410213831_create_sessions.rb
index f667f1e..f667f1e 100644
--- a/db/migrate/20140407081446_create_sessions.rb
+++ b/db/migrate/20140410213831_create_sessions.rb
diff --git a/db/migrate/20140410213838_create_brackets.rb b/db/migrate/20140410213838_create_brackets.rb
new file mode 100644
index 0000000..8813bf2
--- /dev/null
+++ b/db/migrate/20140410213838_create_brackets.rb
@@ -0,0 +1,11 @@
+class CreateBrackets < ActiveRecord::Migration
+ def change
+ create_table :brackets do |t|
+ t.references :user, index: true
+ t.references :tournament, index: true
+ t.string :name
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20140407081449_create_server_settings.rb b/db/migrate/20140410213844_create_server_settings.rb
index dfdd91b..dfdd91b 100644
--- a/db/migrate/20140407081449_create_server_settings.rb
+++ b/db/migrate/20140410213844_create_server_settings.rb
diff --git a/db/migrate/20140407081452_create_game_settings.rb b/db/migrate/20140410213851_create_game_settings.rb
index b1caf5d..b1caf5d 100644
--- a/db/migrate/20140407081452_create_game_settings.rb
+++ b/db/migrate/20140410213851_create_game_settings.rb
diff --git a/db/migrate/20140407081454_create_tournament_preferences.rb b/db/migrate/20140410213857_create_tournament_preferences.rb
index 991d659..991d659 100644
--- a/db/migrate/20140407081454_create_tournament_preferences.rb
+++ b/db/migrate/20140410213857_create_tournament_preferences.rb
diff --git a/db/migrate/20140407081458_create_scores.rb b/db/migrate/20140410213903_create_scores.rb
index 4ca0b0b..4ca0b0b 100644
--- a/db/migrate/20140407081458_create_scores.rb
+++ b/db/migrate/20140410213903_create_scores.rb
diff --git a/db/migrate/20140407081501_create_remote_usernames.rb b/db/migrate/20140410213909_create_remote_usernames.rb
index e265985..e265985 100644
--- a/db/migrate/20140407081501_create_remote_usernames.rb
+++ b/db/migrate/20140410213909_create_remote_usernames.rb
diff --git a/db/migrate/20140410213916_create_bracket_matches.rb b/db/migrate/20140410213916_create_bracket_matches.rb
new file mode 100644
index 0000000..3323e31
--- /dev/null
+++ b/db/migrate/20140410213916_create_bracket_matches.rb
@@ -0,0 +1,11 @@
+class CreateBracketMatches < ActiveRecord::Migration
+ def change
+ create_table :bracket_matches do |t|
+ t.references :bracket, index: true
+ t.references :match, index: true
+ t.references :predicted_winner, index: true
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20140407081503_create_tournament_players_join_table.rb b/db/migrate/20140410213922_create_tournament_players_join_table.rb
index be240e8..be240e8 100644
--- a/db/migrate/20140407081503_create_tournament_players_join_table.rb
+++ b/db/migrate/20140410213922_create_tournament_players_join_table.rb
diff --git a/db/migrate/20140407081506_create_tournament_hosts_join_table.rb b/db/migrate/20140410213928_create_tournament_hosts_join_table.rb
index 7521d89..7521d89 100644
--- a/db/migrate/20140407081506_create_tournament_hosts_join_table.rb
+++ b/db/migrate/20140410213928_create_tournament_hosts_join_table.rb
diff --git a/db/migrate/20140407081509_create_team_user_join_table.rb b/db/migrate/20140410213935_create_team_user_join_table.rb
index f3b57fc..f3b57fc 100644
--- a/db/migrate/20140407081509_create_team_user_join_table.rb
+++ b/db/migrate/20140410213935_create_team_user_join_table.rb
diff --git a/db/migrate/20140407081512_create_match_team_join_table.rb b/db/migrate/20140410213941_create_match_team_join_table.rb
index c2ed1b7..c2ed1b7 100644
--- a/db/migrate/20140407081512_create_match_team_join_table.rb
+++ b/db/migrate/20140410213941_create_match_team_join_table.rb
diff --git a/db/migrate/20140407081524_add_hidden_attrs_to_user.rb b/db/migrate/20140410214006_add_hidden_attrs_to_user.rb
index 9b5c505..9b5c505 100644
--- a/db/migrate/20140407081524_add_hidden_attrs_to_user.rb
+++ b/db/migrate/20140410214006_add_hidden_attrs_to_user.rb
diff --git a/db/schema.rb b/db/schema.rb
index 9214da8..e6ad821 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: 20140407081524) do
+ActiveRecord::Schema.define(version: 20140410214006) do
create_table "alerts", force: true do |t|
t.integer "author_id"
@@ -22,6 +22,29 @@ ActiveRecord::Schema.define(version: 20140407081524) do
add_index "alerts", ["author_id"], name: "index_alerts_on_author_id"
+ create_table "bracket_matches", force: true do |t|
+ t.integer "bracket_id"
+ t.integer "match_id"
+ t.integer "predicted_winner_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "bracket_matches", ["bracket_id"], name: "index_bracket_matches_on_bracket_id"
+ add_index "bracket_matches", ["match_id"], name: "index_bracket_matches_on_match_id"
+ add_index "bracket_matches", ["predicted_winner_id"], name: "index_bracket_matches_on_predicted_winner_id"
+
+ create_table "brackets", force: true do |t|
+ t.integer "user_id"
+ t.integer "tournament_id"
+ t.string "name"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "brackets", ["tournament_id"], name: "index_brackets_on_tournament_id"
+ add_index "brackets", ["user_id"], name: "index_brackets_on_user_id"
+
create_table "delayed_jobs", force: true do |t|
t.integer "priority", default: 0, null: false
t.integer "attempts", default: 0, null: false