lib/earth/residence/residence_class.rb in earth-0.1.2 vs lib/earth/residence/residence_class.rb in earth-0.1.3

- old
+ new

@@ -9,18 +9,8 @@ def classification CLASSIFICATIONS.detect { |c| name.downcase.include? c } end data_miner do - schema do - string :name - end - - process "derive from ResidentialEnergyConsumptionSurveyResponse" do - ResidentialEnergyConsumptionSurveyResponse.run_data_miner! - connection.execute %{ - INSERT IGNORE INTO residence_classes(name) - SELECT DISTINCT residential_energy_consumption_survey_responses.residence_class_id FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.residence_class_id) > 0 - } - end + tap "Brighter Planet's sanitized residence class data", Earth.taps_server end end