Sha256: db4d67b7690d9b660c911ee99eb231d78df94961857b2a16f4c0454f18cf10b5

Contents?: true

Size: 504 Bytes

Versions: 5

Compression:

Stored size: 504 Bytes

Contents

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 AutomobileMakeModelYearVariant" do
      ::Earth::Utils.insert_ignore(
        :src => AutomobileMakeModelYearVariant,
        :dest => AutomobileModel,
        :cols => { :model_name => :name }
      )
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.12.3 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.12.2 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.12.1 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.12.0 lib/earth/automobile/automobile_model/data_miner.rb