From 0c22c4bd9a0b4a0b0ff5840c1af41c0b320e3529 Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Tue, 25 Mar 2014 17:30:10 -0400 Subject: added match status --- db/migrate/20140325212823_create_matches.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 db/migrate/20140325212823_create_matches.rb (limited to 'db/migrate/20140325212823_create_matches.rb') diff --git a/db/migrate/20140325212823_create_matches.rb b/db/migrate/20140325212823_create_matches.rb new file mode 100644 index 0000000..30949a8 --- /dev/null +++ b/db/migrate/20140325212823_create_matches.rb @@ -0,0 +1,12 @@ +class CreateMatches < ActiveRecord::Migration + def change + create_table :matches do |t| + t.integer :status + t.references :tournament, index: true + t.string :name + t.references :winner, index: true + + t.timestamps + end + end +end -- cgit v1.2.3-2-g168b