Sha256: c310b385d3437aafc6839a85e758bbdc2df1b8be8c7a68dabba63fa7aadf8ddf
Contents?: true
Size: 625 Bytes
Versions: 8
Compression:
Stored size: 625 Bytes
Contents
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
8 entries across 8 versions & 1 rubygems