Sha256: d6e8d2a4b977d76668cd2f917ef93703b6b0b8df5d67fe37871f5bd096f96fb7

Contents?: true

Size: 240 Bytes

Versions: 23

Compression:

Stored size: 240 Bytes

Contents

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

  def self.down
    drop_table(:leagues)
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

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