summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20140304014838_create_servers.rb (renamed from db/migrate/20140304014808_create_servers.rb)0
-rw-r--r--db/migrate/20140304014840_create_tournaments.rb (renamed from db/migrate/20140304014810_create_tournaments.rb)0
-rw-r--r--db/migrate/20140304014842_create_matches.rb (renamed from db/migrate/20140304014812_create_matches.rb)2
-rw-r--r--db/migrate/20140304014844_create_teams.rb (renamed from db/migrate/20140304014814_create_teams.rb)0
-rw-r--r--db/migrate/20140304014846_create_users.rb (renamed from db/migrate/20140304014816_create_users.rb)4
-rw-r--r--db/migrate/20140304014848_create_user_team_pairs.rb (renamed from db/migrate/20140304014819_create_user_team_pairs.rb)4
-rw-r--r--db/migrate/20140304014850_create_team_match_pairs.rb (renamed from db/migrate/20140304014821_create_team_match_pairs.rb)4
-rw-r--r--db/migrate/20140304014852_create_alerts.rb (renamed from db/migrate/20140304014823_create_alerts.rb)2
-rw-r--r--db/migrate/20140304014855_create_pms.rb (renamed from db/migrate/20140304014825_create_pms.rb)4
-rw-r--r--db/migrate/20140304014857_create_server_settings.rb (renamed from db/migrate/20140304014827_create_server_settings.rb)0
10 files changed, 10 insertions, 10 deletions
diff --git a/db/migrate/20140304014808_create_servers.rb b/db/migrate/20140304014838_create_servers.rb
index f33241a..f33241a 100644
--- a/db/migrate/20140304014808_create_servers.rb
+++ b/db/migrate/20140304014838_create_servers.rb
diff --git a/db/migrate/20140304014810_create_tournaments.rb b/db/migrate/20140304014840_create_tournaments.rb
index 2095590..2095590 100644
--- a/db/migrate/20140304014810_create_tournaments.rb
+++ b/db/migrate/20140304014840_create_tournaments.rb
diff --git a/db/migrate/20140304014812_create_matches.rb b/db/migrate/20140304014842_create_matches.rb
index 288ce6a..6c0c157 100644
--- a/db/migrate/20140304014812_create_matches.rb
+++ b/db/migrate/20140304014842_create_matches.rb
@@ -1,7 +1,7 @@
class CreateMatches < ActiveRecord::Migration
def change
create_table :matches do |t|
- t.reference :tournament
+ t.references :tournament, index: true
t.timestamps
end
diff --git a/db/migrate/20140304014814_create_teams.rb b/db/migrate/20140304014844_create_teams.rb
index dd8397d..dd8397d 100644
--- a/db/migrate/20140304014814_create_teams.rb
+++ b/db/migrate/20140304014844_create_teams.rb
diff --git a/db/migrate/20140304014816_create_users.rb b/db/migrate/20140304014846_create_users.rb
index 3723908..6a500e5 100644
--- a/db/migrate/20140304014816_create_users.rb
+++ b/db/migrate/20140304014846_create_users.rb
@@ -2,8 +2,8 @@ class CreateUsers < ActiveRecord::Migration
def change
create_table :users do |t|
t.text :name
- t.varchar :pw_hash
- t.int :groups
+ t.text :pw_hash
+ t.integer :groups
t.timestamps
end
diff --git a/db/migrate/20140304014819_create_user_team_pairs.rb b/db/migrate/20140304014848_create_user_team_pairs.rb
index 3b60212..2c492ac 100644
--- a/db/migrate/20140304014819_create_user_team_pairs.rb
+++ b/db/migrate/20140304014848_create_user_team_pairs.rb
@@ -1,8 +1,8 @@
class CreateUserTeamPairs < ActiveRecord::Migration
def change
create_table :user_team_pairs do |t|
- t.reference :user
- t.reference :team
+ t.references :user, index: true
+ t.references :team, index: true
t.timestamps
end
diff --git a/db/migrate/20140304014821_create_team_match_pairs.rb b/db/migrate/20140304014850_create_team_match_pairs.rb
index c489495..8fac07e 100644
--- a/db/migrate/20140304014821_create_team_match_pairs.rb
+++ b/db/migrate/20140304014850_create_team_match_pairs.rb
@@ -1,8 +1,8 @@
class CreateTeamMatchPairs < ActiveRecord::Migration
def change
create_table :team_match_pairs do |t|
- t.reference :team
- t.reference :match
+ t.references :team, index: true
+ t.references :match, index: true
t.timestamps
end
diff --git a/db/migrate/20140304014823_create_alerts.rb b/db/migrate/20140304014852_create_alerts.rb
index 6167f33..68a8e10 100644
--- a/db/migrate/20140304014823_create_alerts.rb
+++ b/db/migrate/20140304014852_create_alerts.rb
@@ -1,7 +1,7 @@
class CreateAlerts < ActiveRecord::Migration
def change
create_table :alerts do |t|
- t.reference :author
+ t.references :author, index: true
t.text :message
t.timestamps
diff --git a/db/migrate/20140304014825_create_pms.rb b/db/migrate/20140304014855_create_pms.rb
index f3b27fb..93bb5c6 100644
--- a/db/migrate/20140304014825_create_pms.rb
+++ b/db/migrate/20140304014855_create_pms.rb
@@ -1,8 +1,8 @@
class CreatePms < ActiveRecord::Migration
def change
create_table :pms do |t|
- t.reference :author
- t.reference :recipient
+ t.references :author, index: true
+ t.references :recipient, index: true
t.text :message
t.timestamps
diff --git a/db/migrate/20140304014827_create_server_settings.rb b/db/migrate/20140304014857_create_server_settings.rb
index dfdd91b..dfdd91b 100644
--- a/db/migrate/20140304014827_create_server_settings.rb
+++ b/db/migrate/20140304014857_create_server_settings.rb