Sha256: ef97dc1570a2d8cbd720de852fab646237681427405bacddf29bf4d6017cccff
Contents?: true
Size: 558 Bytes
Versions: 17
Compression:
Stored size: 558 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
17 entries across 17 versions & 1 rubygems