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

Version Path
sferik-merb-admin-0.4.1 schema/migrations/002_create_drafts_migration.rb
sferik-merb-admin-0.4.2 schema/migrations/002_create_drafts_migration.rb
sferik-merb-admin-0.4.3 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.9 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.8 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.7 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.6 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.5 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.4 schema/migrations/002_create_drafts_migration.rb
merb-admin-0.4.3 schema/migrations/002_create_drafts_migration.rb