Sha256: c704e4b0b57ee2c7b9b0a4d1713814b183a3d44591dc200db13e71bf16e355ad
Contents?: true
Size: 646 Bytes
Versions: 3
Compression:
Stored size: 646 Bytes
Contents
require 'earth/fuel' class AutomobileMakeModelYear < ActiveRecord::Base set_primary_key :name # Need this so Automobile and AutomobileTrip can do characteristics[:make_model_year].automobile_fuel belongs_to :automobile_fuel, :foreign_key => 'fuel_code', :primary_key => 'code' col :name # make + model + year col :make_name col :model_name col :year, :type => :integer col :fuel_code col :hybridity, :type => :boolean col :fuel_efficiency_city, :type => :float col :fuel_efficiency_city_units col :fuel_efficiency_highway, :type => :float col :fuel_efficiency_highway_units end
Version data entries
3 entries across 3 versions & 1 rubygems