Sha256: 554c29df67cbaf5306529d1ff867f401c1d99a9423430c691ed387529541e2ff

Contents?: true

Size: 469 Bytes

Versions: 19

Compression:

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

19 entries across 19 versions & 1 rubygems

Version Path
merb-admin-0.8.1 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.8.0 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.6 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.5 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.4 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.3 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.2 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.1 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.7.0 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.9 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.8 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.7 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.6 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.5 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.4 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.3 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.2 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.1 spec/migrations/sequel/002_create_drafts_migration.rb
merb-admin-0.6.0 spec/migrations/sequel/002_create_drafts_migration.rb