Sha256: b90f77e818701f526982bfc2fe14dabd0de98f001b6eae37524c938654f485db

Contents?: true

Size: 283 Bytes

Versions: 2

Compression:

Stored size: 283 Bytes

Contents

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

  def down
    drop_table(:leagues)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
merb-admin-0.8.5 spec/migrations/sequel/003_create_leagues_migration.rb
merb-admin-0.8.3 spec/migrations/sequel/003_create_leagues_migration.rb