Sha256: b0d38c834bc764e4b5fdb4452a71ed3bfb8d629da926712d1529e10ad6099f74

Contents?: true

Size: 348 Bytes

Versions: 5

Compression:

Stored size: 348 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

  warn_if_nulls_except(
    :weight,
    :weight_units
  )

  warn_unless_size 522
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/pet/breed.rb
earth-0.12.3 lib/earth/pet/breed.rb
earth-0.12.2 lib/earth/pet/breed.rb
earth-0.12.1 lib/earth/pet/breed.rb
earth-0.12.0 lib/earth/pet/breed.rb