Sha256: 4e76368339d31c15c12f6a79ef83d880d3b96a6ac2c89a141a42bf1b261fd77a

Contents?: true

Size: 264 Bytes

Versions: 10

Compression:

Stored size: 264 Bytes

Contents

class Breed < ActiveRecord::Base
  self.primary_key = "name"
  
  has_many :breed_genders, :foreign_key => 'breed_name'
  belongs_to :species, :foreign_key => 'species_name'
  
  col :name
  col :species_name
  col :weight, :type => :float
  col :weight_units
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/pet/breed.rb
earth-0.11.19 lib/earth/pet/breed.rb
earth-0.11.18 lib/earth/pet/breed.rb
earth-0.11.17 lib/earth/pet/breed.rb
earth-0.11.16 lib/earth/pet/breed.rb
earth-0.11.15 lib/earth/pet/breed.rb
earth-0.11.14 lib/earth/pet/breed.rb
earth-0.11.13 lib/earth/pet/breed.rb
earth-0.11.12 lib/earth/pet/breed.rb
earth-0.11.11 lib/earth/pet/breed.rb