From b43bab15521c7c511ab7012bd137daa0e85bb95b Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 4 Apr 2014 21:06:05 -0400 Subject: run generate.sh --- db/migrate/20140405010438_create_matches.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/20140405010438_create_matches.rb (limited to 'db/migrate/20140405010438_create_matches.rb') diff --git a/db/migrate/20140405010438_create_matches.rb b/db/migrate/20140405010438_create_matches.rb new file mode 100644 index 0000000..31eea12 --- /dev/null +++ b/db/migrate/20140405010438_create_matches.rb @@ -0,0 +1,13 @@ +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.string :remote_id + + t.timestamps + end + end +end -- cgit v1.2.3-2-g168b