summaryrefslogtreecommitdiff
path: root/db/migrate/20140424202641_create_statistics.rb
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
committertkimia <tkimia@purdue.edu>2014-04-24 17:10:42 -0400
commit74814dad443659e1e0875329c95cc0257de25b3b (patch)
tree04e1e00daa8da22cfff84d264b1af2edd37ad2b4 /db/migrate/20140424202641_create_statistics.rb
parentdd9a7a6b55fd3a6a494ba41fc133b1f1056c66a9 (diff)
parentcba88607fef562846958a0baeda420fa2d7529ed (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'db/migrate/20140424202641_create_statistics.rb')
-rw-r--r--db/migrate/20140424202641_create_statistics.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20140424202641_create_statistics.rb b/db/migrate/20140424202641_create_statistics.rb
new file mode 100644
index 0000000..cc2e97d
--- /dev/null
+++ b/db/migrate/20140424202641_create_statistics.rb
@@ -0,0 +1,12 @@
+class CreateStatistics < ActiveRecord::Migration
+ def change
+ create_table :statistics do |t|
+ t.references :user, index: true
+ t.references :match, index: true
+ t.string :name
+ t.integer :value
+
+ t.timestamps
+ end
+ end
+end