Sha256: bdec29e9e87e08af85cfb039b4516559c3e0f7f806ebf7da25f401cc846d9e87

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

class CreateLeaguesMigration < ActiveRecord::Migration
  def self.up
    create_table :leagues do |t|
      t.timestamps
      t.string :name, :limit => 50, :null => false
    end
    add_index :leagues, :name
  end

  def self.down
    drop_table :leagues
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
sferik-merb-admin-0.4.1 schema/migrations/003_create_leagues_migration.rb
sferik-merb-admin-0.4.2 schema/migrations/003_create_leagues_migration.rb
sferik-merb-admin-0.4.3 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.6 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.5 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.4 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.3 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.2 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.1 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.5.0 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.9 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.8 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.7 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.6 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.5 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.4 schema/migrations/003_create_leagues_migration.rb
merb-admin-0.4.3 schema/migrations/003_create_leagues_migration.rb