Sha256: 557e15d2fc4f686a5deb4fc9ff8fd55e502c2353466a368a14aa42cc538c2617
Contents?: true
Size: 868 Bytes
Versions: 2
Compression:
Stored size: 868 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
merb-admin-0.5.6 | spec/models/datamapper/team.rb |
merb-admin-0.5.5 | spec/models/datamapper/team.rb |