Sha256: 12c49c6ce03b72ef27d2861484428b7a32c0e58aced92a08bf924dc4a2b1e8cf

Contents?: true

Size: 333 Bytes

Versions: 5

Compression:

Stored size: 333 Bytes

Contents

class AutomobileMake < ActiveRecord::Base
  self.primary_key = "name"
  
  # for calculating fuel efficiency
  has_many :make_years, :foreign_key => :make_name, :primary_key => :name, :class_name => 'AutomobileMakeYear'
  
  col :name
  col :fuel_efficiency, :type => :float
  col :fuel_efficiency_units
  
  warn_unless_size 81
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/automobile/automobile_make.rb
earth-0.12.3 lib/earth/automobile/automobile_make.rb
earth-0.12.2 lib/earth/automobile/automobile_make.rb
earth-0.12.1 lib/earth/automobile/automobile_make.rb
earth-0.12.0 lib/earth/automobile/automobile_make.rb