Sha256: b7bb9ea7fce8dfa0f83aca1e7c1fe6464a64973f6f5ae05936bac2dc817192ff

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 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

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.8.3 spec/migrations/sequel/002_create_drafts_migration.rb