Sha256: b294c31bf5e4b579750691ee1cbb98f119a77527e8d08647357fdb490ed3f38d

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

class CreateDrafts < Sequel::Migration
  def up
    create_table(:drafts) do
      primary_key(:id)
      DateTime(:created_at)
      DateTime(:updated_at)
      foreign_key(:player_id, :table => :players)
      foreign_key(:team_id, :table => :teams)
      Date(:date)
      Integer(:round)
      Integer(:pick)
      Integer(:overall)
      String(:college, :limit => 100)
      String(:notes, :text => true)
    end
  end

  def down
    drop_table(:drafts)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
merb-admin-0.8.8 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.8.7 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.8.6 spec/migrations/sequel/002_create_drafts_migration.rb