Sha256: db6d4036e2dd71f43ac6499de0dc635f2578375baba164aebe5c4385bb5a3a41

Contents?: true

Size: 663 Bytes

Versions: 16

Compression:

Stored size: 663 Bytes

Contents

class ResidenceFuelPrice < ActiveRecord::Base
  set_primary_key :row_hash
  
  extend CohortScope
  self.minimum_cohort_size = 5 # ? FIXME
  
  belongs_to :fuel, :class_name => 'ResidenceFuelType', :foreign_key => 'residence_fuel_type_name'
  belongs_to :locatable, :polymorphic => true
  
  col :row_hash
  col :residence_fuel_type_name
  col :year, :type => :integer
  col :month, :type => :integer
  col :price, :type => :float
  col :price_units
  col :price_description
  col :locatable_id
  col :locatable_type
  add_index [:price, :residence_fuel_type_name, :month, :year, :locatable_type, :locatable_id]
  add_index [:price, :residence_fuel_type_name]
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
earth-0.11.7 lib/earth/residence/residence_fuel_price.rb
earth-0.11.6 lib/earth/residence/residence_fuel_price.rb
earth-0.11.5 lib/earth/residence/residence_fuel_price.rb
earth-0.11.4 lib/earth/residence/residence_fuel_price.rb
earth-0.11.3 lib/earth/residence/residence_fuel_price.rb
earth-0.11.2 lib/earth/residence/residence_fuel_price.rb
earth-0.11.1 lib/earth/residence/residence_fuel_price.rb
earth-0.11.0 lib/earth/residence/residence_fuel_price.rb
earth-0.7.0 lib/earth/residence/residence_fuel_price.rb
earth-0.6.6 lib/earth/residence/residence_fuel_price.rb
earth-0.6.5 lib/earth/residence/residence_fuel_price.rb
earth-0.6.4 lib/earth/residence/residence_fuel_price.rb
earth-0.6.3 lib/earth/residence/residence_fuel_price.rb
earth-0.6.2 lib/earth/residence/residence_fuel_price.rb
earth-0.6.1 lib/earth/residence/residence_fuel_price.rb
earth-0.6.0 lib/earth/residence/residence_fuel_price.rb