Sha256: 17c3e9e85974b8a26de02f44b333b37d162f66912fd977f705a7938dedbdd06c
Contents?: true
Size: 650 Bytes
Versions: 10
Compression:
Stored size: 650 Bytes
Contents
require 'earth/fuel' class AutomobileMakeModelYear < ActiveRecord::Base self.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
10 entries across 10 versions & 1 rubygems