summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-05 20:45:29 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-05 20:45:29 -0500
commit0d710239a765787f10de304edc438de2dfaa9824 (patch)
tree69f60c7b7f6909b6bc4d4805d5473d56cffa3e81 /db
parent11e4de6fd8235b1877b1725d53a98f017130c768 (diff)
make a session model as well as controller
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140306014047_create_servers.rb (renamed from db/migrate/20140304043618_create_servers.rb)0
-rw-r--r--db/migrate/20140306014050_create_tournaments.rb (renamed from db/migrate/20140304043620_create_tournaments.rb)0
-rw-r--r--db/migrate/20140306014052_create_matches.rb (renamed from db/migrate/20140304043622_create_matches.rb)0
-rw-r--r--db/migrate/20140306014054_create_teams.rb (renamed from db/migrate/20140304043624_create_teams.rb)0
-rw-r--r--db/migrate/20140306014056_create_alerts.rb (renamed from db/migrate/20140304043626_create_alerts.rb)0
-rw-r--r--db/migrate/20140306014059_create_pms.rb (renamed from db/migrate/20140304043629_create_pms.rb)0
-rw-r--r--db/migrate/20140306014101_create_games.rb (renamed from db/migrate/20140304043631_create_games.rb)0
-rw-r--r--db/migrate/20140306014103_create_users.rb (renamed from db/migrate/20140304043633_create_users.rb)0
-rw-r--r--db/migrate/20140306014106_create_sessions.rb9
-rw-r--r--db/migrate/20140306014108_create_game_attributes.rb (renamed from db/migrate/20140304043635_create_game_attributes.rb)0
-rw-r--r--db/migrate/20140306014110_create_server_settings.rb (renamed from db/migrate/20140304043637_create_server_settings.rb)0
-rw-r--r--db/migrate/20140306014112_create_user_team_pairs.rb (renamed from db/migrate/20140304043639_create_user_team_pairs.rb)0
-rw-r--r--db/migrate/20140306014114_create_team_match_pairs.rb (renamed from db/migrate/20140304043642_create_team_match_pairs.rb)0
-rw-r--r--db/migrate/20140306014123_add_index_to_users_email.rb (renamed from db/migrate/20140304043652_add_index_to_users_email.rb)0
-rw-r--r--db/migrate/20140306014125_add_index_to_users_user_name.rb (renamed from db/migrate/20140304043654_add_index_to_users_user_name.rb)0
-rw-r--r--db/migrate/20140306014128_add_password_digest_to_users.rb (renamed from db/migrate/20140304043656_add_password_digest_to_users.rb)0
-rw-r--r--db/migrate/20140306014130_add_remember_token_to_users.rb (renamed from db/migrate/20140304043658_add_remember_token_to_users.rb)0
-rw-r--r--db/migrate/20140306014132_create_tournament_options.rb (renamed from db/migrate/20140304043700_create_tournament_options.rb)0
-rw-r--r--db/schema.rb10
19 files changed, 18 insertions, 1 deletions
diff --git a/db/migrate/20140304043618_create_servers.rb b/db/migrate/20140306014047_create_servers.rb
index f33241a..f33241a 100644
--- a/db/migrate/20140304043618_create_servers.rb
+++ b/db/migrate/20140306014047_create_servers.rb
diff --git a/db/migrate/20140304043620_create_tournaments.rb b/db/migrate/20140306014050_create_tournaments.rb
index 36fcf7e..36fcf7e 100644
--- a/db/migrate/20140304043620_create_tournaments.rb
+++ b/db/migrate/20140306014050_create_tournaments.rb
diff --git a/db/migrate/20140304043622_create_matches.rb b/db/migrate/20140306014052_create_matches.rb
index 325863d..325863d 100644
--- a/db/migrate/20140304043622_create_matches.rb
+++ b/db/migrate/20140306014052_create_matches.rb
diff --git a/db/migrate/20140304043624_create_teams.rb b/db/migrate/20140306014054_create_teams.rb
index dd8397d..dd8397d 100644
--- a/db/migrate/20140304043624_create_teams.rb
+++ b/db/migrate/20140306014054_create_teams.rb
diff --git a/db/migrate/20140304043626_create_alerts.rb b/db/migrate/20140306014056_create_alerts.rb
index 68a8e10..68a8e10 100644
--- a/db/migrate/20140304043626_create_alerts.rb
+++ b/db/migrate/20140306014056_create_alerts.rb
diff --git a/db/migrate/20140304043629_create_pms.rb b/db/migrate/20140306014059_create_pms.rb
index 93bb5c6..93bb5c6 100644
--- a/db/migrate/20140304043629_create_pms.rb
+++ b/db/migrate/20140306014059_create_pms.rb
diff --git a/db/migrate/20140304043631_create_games.rb b/db/migrate/20140306014101_create_games.rb
index 59d4ef0..59d4ef0 100644
--- a/db/migrate/20140304043631_create_games.rb
+++ b/db/migrate/20140306014101_create_games.rb
diff --git a/db/migrate/20140304043633_create_users.rb b/db/migrate/20140306014103_create_users.rb
index f0986d4..f0986d4 100644
--- a/db/migrate/20140304043633_create_users.rb
+++ b/db/migrate/20140306014103_create_users.rb
diff --git a/db/migrate/20140306014106_create_sessions.rb b/db/migrate/20140306014106_create_sessions.rb
new file mode 100644
index 0000000..fe25bf2
--- /dev/null
+++ b/db/migrate/20140306014106_create_sessions.rb
@@ -0,0 +1,9 @@
+class CreateSessions < ActiveRecord::Migration
+ def change
+ create_table :sessions do |t|
+ t.references :user, index: true
+
+ t.timestamps
+ end
+ end
+end
diff --git a/db/migrate/20140304043635_create_game_attributes.rb b/db/migrate/20140306014108_create_game_attributes.rb
index b63f134..b63f134 100644
--- a/db/migrate/20140304043635_create_game_attributes.rb
+++ b/db/migrate/20140306014108_create_game_attributes.rb
diff --git a/db/migrate/20140304043637_create_server_settings.rb b/db/migrate/20140306014110_create_server_settings.rb
index dfdd91b..dfdd91b 100644
--- a/db/migrate/20140304043637_create_server_settings.rb
+++ b/db/migrate/20140306014110_create_server_settings.rb
diff --git a/db/migrate/20140304043639_create_user_team_pairs.rb b/db/migrate/20140306014112_create_user_team_pairs.rb
index 2c492ac..2c492ac 100644
--- a/db/migrate/20140304043639_create_user_team_pairs.rb
+++ b/db/migrate/20140306014112_create_user_team_pairs.rb
diff --git a/db/migrate/20140304043642_create_team_match_pairs.rb b/db/migrate/20140306014114_create_team_match_pairs.rb
index 8fac07e..8fac07e 100644
--- a/db/migrate/20140304043642_create_team_match_pairs.rb
+++ b/db/migrate/20140306014114_create_team_match_pairs.rb
diff --git a/db/migrate/20140304043652_add_index_to_users_email.rb b/db/migrate/20140306014123_add_index_to_users_email.rb
index b5f8a1a..b5f8a1a 100644
--- a/db/migrate/20140304043652_add_index_to_users_email.rb
+++ b/db/migrate/20140306014123_add_index_to_users_email.rb
diff --git a/db/migrate/20140304043654_add_index_to_users_user_name.rb b/db/migrate/20140306014125_add_index_to_users_user_name.rb
index 724cca5..724cca5 100644
--- a/db/migrate/20140304043654_add_index_to_users_user_name.rb
+++ b/db/migrate/20140306014125_add_index_to_users_user_name.rb
diff --git a/db/migrate/20140304043656_add_password_digest_to_users.rb b/db/migrate/20140306014128_add_password_digest_to_users.rb
index 0070da7..0070da7 100644
--- a/db/migrate/20140304043656_add_password_digest_to_users.rb
+++ b/db/migrate/20140306014128_add_password_digest_to_users.rb
diff --git a/db/migrate/20140304043658_add_remember_token_to_users.rb b/db/migrate/20140306014130_add_remember_token_to_users.rb
index 74c254f..74c254f 100644
--- a/db/migrate/20140304043658_add_remember_token_to_users.rb
+++ b/db/migrate/20140306014130_add_remember_token_to_users.rb
diff --git a/db/migrate/20140304043700_create_tournament_options.rb b/db/migrate/20140306014132_create_tournament_options.rb
index d2df22e..d2df22e 100644
--- a/db/migrate/20140304043700_create_tournament_options.rb
+++ b/db/migrate/20140306014132_create_tournament_options.rb
diff --git a/db/schema.rb b/db/schema.rb
index 1f844f5..e700a4a 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: 20140304043700) do
+ActiveRecord::Schema.define(version: 20140306014132) do
create_table "alerts", force: true do |t|
t.integer "author_id"
@@ -72,6 +72,14 @@ ActiveRecord::Schema.define(version: 20140304043700) do
t.datetime "updated_at"
end
+ create_table "sessions", force: true do |t|
+ t.integer "user_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "sessions", ["user_id"], name: "index_sessions_on_user_id"
+
create_table "team_match_pairs", force: true do |t|
t.integer "team_id"
t.integer "match_id"