Sha256: 57f8d9e0a160bcc4d6f0a3e0e3c6199216a48d91c26895dbd029470456d8d49c

Contents?: true

Size: 340 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 spec/migrations/sequel/001_create_divisions_migration.rb
merb-admin-0.8.3 spec/migrations/sequel/001_create_divisions_migration.rb