6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/flight/data.rb', line 6
def self.included(base)
base.data_miner do
schema do
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_iata_code'
string 'destination_airport_iata_code'
string 'aircraft_bp_code'
string 'aircraft_class_code'
string 'airline_iata_code'
integer 'segments_per_trip'
end
process "pull orphans" do
FlightSegment.run_data_miner!
end
process :run_data_miner_on_belongs_to_associations
end
end
|