Sha256: 850d3702318b27a9ed224085c83f5143f514bca5d64d153df5b46dfb021c4df6

Contents?: true

Size: 509 Bytes

Versions: 8

Compression:

Stored size: 509 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 automobile make model year variants" 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-0.11.7 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.6 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.5 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.4 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.3 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.2 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.1 lib/earth/automobile/automobile_model/data_miner.rb
earth-0.11.0 lib/earth/automobile/automobile_model/data_miner.rb