Sha256: 566481c78755dee5220cb1c01562b5d95ac5559209cb8f7ba8cf49458235529a

Contents?: true

Size: 339 Bytes

Versions: 17

Compression:

Stored size: 339 Bytes

Contents

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

  def self.down
    drop_table :divisions
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

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