Sha256: d8fb78afcf296579a5081d77d4ad7b0ac50b3a089678769a7db3f21b5c24300d

Contents?: true

Size: 654 Bytes

Versions: 1

Compression:

Stored size: 654 Bytes

Contents

require 'earth/locality'
class ResidenceFuelPrice < ActiveRecord::Base
  self.primary_key = "row_hash"
  
  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]

  warn_unless_size 13639
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/residence/residence_fuel_price.rb