Sha256: 15987f76fb9dfa8260635fbda34ab26659ddc4ee4c7c858f66a513271c428e8c
Contents?: true
Size: 522 Bytes
Versions: 23
Compression:
Stored size: 522 Bytes
Contents
AircraftManufacturer.class_eval do data_miner do process "Start from scratch" do connection.drop_table table_name end schema Earth.database_options do string 'name' end process "Derive a list of aircraft manufacturers from aircraft" do Aircraft.run_data_miner! connection.execute %{ INSERT IGNORE INTO aircraft_manufacturers(name) SELECT aircraft.manufacturer_name FROM aircraft WHERE aircraft.manufacturer_name IS NOT NULL } end end end
Version data entries
23 entries across 23 versions & 1 rubygems