Sha256: f29a964447f4fc2f96c6eacc01f4eb396b6a74cb7b0c7f6385cf7975d5c46b2b

Contents?: true

Size: 545 Bytes

Versions: 31

Compression:

Stored size: 545 Bytes

Contents

class CreateTeamsMigration < ActiveRecord::Migration
  def self.up
    create_table :teams do |t|
      t.timestamps
      t.integer :league_id
      t.integer :division_id
      t.string :name, :limit => 50
      t.string :logo_url, :limit => 255
      t.string :manager, :limit => 100, :null => false
      t.string :ballpark, :limit => 100
      t.string :mascot, :limit => 100
      t.integer :founded
      t.integer :wins
      t.integer :losses
      t.float :win_percentage
    end
  end

  def self.down
    drop_table :teams
  end
end

Version data entries

31 entries across 31 versions & 6 rubygems

Version Path
rails_admin-0.6.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.5.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.9 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.8 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.7 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.6 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.5 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.4 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.3 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.2 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.1 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.4.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.3.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.2.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.1.2 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.1.1 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.1.0 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.0.5 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb
rails_admin-0.0.4 spec/dummy_app/db/migrate/00000000000005_create_teams_migration.rb