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