Sha256: f6455aaf8247fc4321a22304ea4cd18e01a7f46b27d85d2c77988ed5e4f87730

Contents?: true

Size: 862 Bytes

Versions: 5

Compression:

Stored size: 862 Bytes

Contents

class AutomobileMakeModelYearVariant < ActiveRecord::Base
  set_primary_key :row_hash
  
  belongs_to :make,            :class_name => 'AutomobileMake',          :foreign_key => 'make_name'
  belongs_to :make_model,      :class_name => 'AutomobileMakeModel',     :foreign_key => 'make_model_name'
  belongs_to :make_model_year, :class_name => 'AutomobileMakeModelYear', :foreign_key => 'make_model_year_name'
  belongs_to :fuel_type,       :class_name => 'AutomobileFuelType',      :foreign_key => 'fuel_type_code'
  belongs_to :fuel,            :class_name => 'AutomobileFuel',          :foreign_key => 'fuel_code', :primary_key => 'code'
  
  data_miner do
    tap "Brighter Planet's sanitized automobile make model year variant data", Earth.taps_server
    
    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.4.4 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.4.3 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.4.2 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.4.1 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.4.0 lib/earth/automobile/automobile_make_model_year_variant.rb