Sha256: 806e0760aefaa641cd0e49d572f3944f8594500041ea793a0deb25fbe947126f

Contents?: true

Size: 501 Bytes

Versions: 8

Compression:

Stored size: 501 Bytes

Contents

require 'earth/automobile/automobile_make_model_year_variant'

AutomobileModel.class_eval do
  data_miner do
    process "Ensure AutomobileMakeModelYearVariant is populated" do
      AutomobileMakeModelYearVariant.run_data_miner!
    end
    
    process "Derive model names from AutomobileMakeModelYearVariant" do
      ::Earth::Utils.insert_ignore(
        :src => AutomobileMakeModelYearVariant,
        :dest => AutomobileModel,
        :cols => { :model_name => :name }
      )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
earth-1.2.1 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.1.2 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.1.1 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.1.0 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.0.3 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.0.2 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.0.1 lib/earth/automobile/automobile_model/data_miner.rb
earth-1.0.0 lib/earth/automobile/automobile_model/data_miner.rb