From ecef4973baed5580e3b2500ce0a65def1132d172 Mon Sep 17 00:00:00 2001 From: guntasgrewal Date: Tue, 25 Mar 2014 16:12:18 -0400 Subject: Changes to generate.sh --- db/migrate/20140325201022_create_matches.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20140325201022_create_matches.rb (limited to 'db/migrate/20140325201022_create_matches.rb') diff --git a/db/migrate/20140325201022_create_matches.rb b/db/migrate/20140325201022_create_matches.rb new file mode 100644 index 0000000..67a5b7b --- /dev/null +++ b/db/migrate/20140325201022_create_matches.rb @@ -0,0 +1,11 @@ +class CreateMatches < ActiveRecord::Migration + def change + create_table :matches do |t| + t.references :tournament, index: true + t.string :name + t.references :winner, index: true + + t.timestamps + end + end +end -- cgit v1.2.3