summaryrefslogtreecommitdiff
path: root/db/migrate/20140304020000_create_matches.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-01 23:20:08 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-01 23:20:08 -0500
commit65289cfb93599cdad1f3476f2f8728e5b0752779 (patch)
treec396988a6715e16fcad1feead3b80905492b97af /db/migrate/20140304020000_create_matches.rb
parentfaa08e4f2dbc6fb37619df7375638c1a7749ef80 (diff)
doc/.gitignore: ignore generated documentation
Diffstat (limited to 'db/migrate/20140304020000_create_matches.rb')
-rw-r--r--db/migrate/20140304020000_create_matches.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20140304020000_create_matches.rb b/db/migrate/20140304020000_create_matches.rb
new file mode 100644
index 0000000..6c0c157
--- /dev/null
+++ b/db/migrate/20140304020000_create_matches.rb
@@ -0,0 +1,9 @@
+class CreateMatches < ActiveRecord::Migration
+ def change
+ create_table :matches do |t|
+ t.references :tournament, index: true
+
+ t.timestamps
+ end
+ end
+end