Sha256: 117e6db097d09e4bfb8ca0344f1f55c4b747249b34a17f9fb08125a4d93bb1e1

Contents?: true

Size: 541 Bytes

Versions: 13

Compression:

Stored size: 541 Bytes

Contents

require 'earth/fuel/data_miner'
AutomobileModel.class_eval do
  data_miner do
    process "Start from scratch" do
      delete_all
    end
    
    process "Ensure AutomobileMakeModelYearVariant is populated" do
      AutomobileMakeModelYearVariant.run_data_miner!
    end
    
    process "Derive model names from automobile make model year variants" do
      ::Earth::Utils.insert_ignore(
        :src => AutomobileMakeModelYearVariant,
        :dest => AutomobileModel,
        :cols => { :model_name => :name }
      )
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.19 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.18 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.17 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.16 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.15 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.14 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.13 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.12 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.11 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.10 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.9 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.8 lib/earth/automobile/automobile_model/data_miner.rb