Sha256: 3253055435a54f988fdd4994ab77c49435ca9b6ad5019aa0c5238354636828a6

Contents?: true

Size: 859 Bytes

Versions: 4

Compression:

Stored size: 859 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'
  has_many :automobiles,                                                 :foreign_key => 'make_model_year_variant_row_hash'

  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

4 entries across 4 versions & 1 rubygems

Version Path
earth-0.3.3 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.3.2 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.3.1 lib/earth/automobile/automobile_make_model_year_variant.rb
earth-0.3.0 lib/earth/automobile/automobile_make_model_year_variant.rb