Sha256: ad90262e03ec65cabfa129bd41265ad66d9ecafe4f03f3c847070ff0c9a146c5
Contents?: true
Size: 885 Bytes
Versions: 6
Compression:
Stored size: 885 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, :nullable => false, :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
6 entries across 6 versions & 1 rubygems