summaryrefslogtreecommitdiff
path: root/db/migrate/20140304015924_create_user_team_pairs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20140304015924_create_user_team_pairs.rb')
-rw-r--r--db/migrate/20140304015924_create_user_team_pairs.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20140304015924_create_user_team_pairs.rb b/db/migrate/20140304015924_create_user_team_pairs.rb
new file mode 100644
index 0000000..2c492ac
--- /dev/null
+++ b/db/migrate/20140304015924_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