4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/fuel_purchase/data.rb', line 4
def self.included(base)
base.data_miner do
schema do
string 'fuel_type_id'
float 'volume'
string 'volume_units'
float 'cost'
string 'cost_units'
float 'price'
string 'price_units'
string 'zip_code_id'
string 'state_id'
string 'petroleum_administration_for_defense_district_id'
date 'date'
end
process "Pull orphans" do
FuelPrice.run_data_miner!
end
process :run_data_miner_on_belongs_to_associations
end
end
|