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