Sha256: 5b63c1d8321e44ca9ab7e3d0074bae2ec9c6107af77d698b62982d9c421ed822
Contents?: true
Size: 865 Bytes
Versions: 9
Compression:
Stored size: 865 Bytes
Contents
class Team include DataMapper::Resource property(:id, Serial) property(:created_at, DateTime) property(:updated_at, DateTime) property(:league_id, Integer, :nullable => false, :index => true) property(:division_id, Integer, :nullable => false, :index => true) property(:name, String, :index => true) property(:logo_url, String, :length => 255) property(:manager, String, :length => 100, :nullable => false, :index => true) property(:ballpark, String, :length => 100, :index => true) property(:mascot, String, :length => 100, :index => true) property(:founded, Integer, :nullable => false) property(:wins, Integer, :nullable => false) property(:losses, Integer, :nullable => false) property(:win_percentage, Float, :nullable => false, :precision => 4, :scale => 3) belongs_to(:league) belongs_to(:division) has(n, :players) end
Version data entries
9 entries across 9 versions & 1 rubygems