summaryrefslogtreecommitdiff
path: root/db/migrate/20140307023509_create_tournament_options.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 21:40:12 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 21:40:12 -0500
commit9493275dbb5c59cfe571c48a8ff76d5b1a723d6a (patch)
tree19cdf2711a3a9d1e4f2f6542d6b804716ae42c68 /db/migrate/20140307023509_create_tournament_options.rb
parent64d4bd0d7bff0bf0e1c405bfa154f22775ca724e (diff)
parent88204381fbdef9d9f80d796b695b1e7e0b8f6814 (diff)
Merge branch 'clean'
Diffstat (limited to 'db/migrate/20140307023509_create_tournament_options.rb')
-rw-r--r--db/migrate/20140307023509_create_tournament_options.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20140307023509_create_tournament_options.rb b/db/migrate/20140307023509_create_tournament_options.rb
new file mode 100644
index 0000000..53b601c
--- /dev/null
+++ b/db/migrate/20140307023509_create_tournament_options.rb
@@ -0,0 +1,12 @@
+class CreateTournamentOptions < ActiveRecord::Migration
+ def change
+ create_table :tournament_options do |t|
+ t.references :tournament, index: true
+ t.integer :vartype
+ t.string :name
+ t.text :value
+
+ t.timestamps
+ end
+ end
+end