Sha256: fc3175ff0365722eff0046b4493856eb6df99f9b8fd454c76598f82bd2210bcb

Contents?: true

Size: 325 Bytes

Versions: 22

Compression:

Stored size: 325 Bytes

Contents

class CreateDivisions < Sequel::Migration
  def up
    create_table(:divisions) do
      primary_key(:id)
      DateTime(:created_at)
      DateTime(:updated_at)
      foreign_key(:league_id, :table => :leagues)
      String(:name, :limit => 50, :null => false)
    end
  end

  def down
    drop_table(:divisions)
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
merb-admin-0.8.8 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.8.7 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.8.6 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.8.1 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.8.0 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.6 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.5 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.4 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.3 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.2 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.1 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.7.0 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.9 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.8 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.7 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.6 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.5 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.4 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.3 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.6.2 spec/migrations/sequel/001_create_divisions_migration.rb