Sha256: 2e0fe7ad97b0df58d7bed4dca876f5b698cc7010faa5f871af5a66c086d091dc
Contents?: true
Size: 714 Bytes
Versions: 45
Compression:
Stored size: 714 Bytes
Contents
class AutomobileVariant < ActiveRecord::Base set_primary_key :row_hash has_many :automobiles, :foreign_key => 'variant_id' belongs_to :make, :class_name => 'AutomobileMake', :foreign_key => 'make_name' belongs_to :model, :class_name => 'AutomobileModel', :foreign_key => 'model_name' belongs_to :model_year, :class_name => 'AutomobileModelYear', :foreign_key => 'model_year_name' belongs_to :fuel_type, :class_name => 'AutomobileFuelType', :foreign_key => 'fuel_type_code' data_miner do tap "Brighter Planet's sanitized automobile variant data", Earth.taps_server process "pull dependencies" do run_data_miner_on_belongs_to_associations end end end
Version data entries
45 entries across 45 versions & 2 rubygems