Sha256: 8be3270f2c2df6902e502c2c449a9cbc28c4940f8c8e8fcb8137c93c682b5da7
Contents?: true
Size: 449 Bytes
Versions: 10
Compression:
Stored size: 449 Bytes
Contents
class CreateDraftsMigration < ActiveRecord::Migration def self.up create_table :drafts do |t| t.timestamps t.integer :player_id t.integer :team_id t.date :date t.integer :round t.integer :pick t.integer :overall t.string :college, :limit => 100 t.text :notes end add_index :drafts, :player_id add_index :drafts, :team_id end def self.down drop_table :drafts end end
Version data entries
10 entries across 10 versions & 2 rubygems