lib/flight/data.rb in flight-0.0.23 vs lib/flight/data.rb in flight-0.1.0
- old
+ new
@@ -1,28 +1,29 @@
+require 'data_miner'
+
module BrighterPlanet
module Flight
module Data
def self.included(base)
base.data_miner do
schema do
- string 'origin_airport_id'
- string 'destination_airport_id'
- integer 'trips'
- integer 'emplanements_per_trip'
- float 'distance_estimate'
- string 'distance_class_id'
- string 'aircraft_id'
- string 'aircraft_class_id'
- string 'propulsion_id'
- string 'fuel_type_id'
- string 'airline_id'
- string 'seat_class_id'
- integer 'seats_estimate'
- float 'load_factor'
- string 'domesticity_id'
- date 'date'
- integer 'year'
- time 'time_of_day'
+ float 'aviation_multiplier'
+ float 'distance_estimate'
+ string 'distance_class_name'
+ string 'fuel_type_name'
+ integer 'seats_estimate'
+ float 'load_factor'
+ integer 'trips'
+ string 'seat_class_name'
+ string 'country_iso_3166_code'
+ date 'date'
+ string 'origin_airport_id'
+ string 'destination_airport_id'
+ string 'aircraft_icao_code'
+ string 'aircraft_class_brighter_planet_aircraft_class_code'
+ string 'airline_iata_code'
+ integer 'segments_per_trip'
+ float 'dogleg_factor'
end
process "pull orphans" do
FlightSegment.run_data_miner!
end