Sha256: cb54f5a5e7108c21f86e6dd75818f5edd2e372b53dfb67d89e7c46a23c309c75
Contents?: true
Size: 880 Bytes
Versions: 2
Compression:
Stored size: 880 Bytes
Contents
class Team include DataMapper::Resource property(:id, Serial) property(:created_at, DateTime) property(:updated_at, DateTime) property(:league_id, Integer, :required => true, :index => true) property(:division_id, Integer, :required => true, :index => true) property(:name, String, :index => true) property(:logo_url, String, :length => 255) property(:manager, String, :length => 100, :required => true, :index => true) property(:ballpark, String, :length => 100, :index => true) property(:mascot, String, :length => 100, :index => true) property(:founded, Integer, :required => true) property(:wins, Integer, :required => true) property(:losses, Integer, :required => true) property(:win_percentage, Float, :required => true, :precision => 4, :scale => 3) belongs_to(:league) belongs_to(:division) has(n, :players) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-admin-0.8.5 | spec/models/datamapper/team.rb |
merb-admin-0.8.3 | spec/models/datamapper/team.rb |