Sha256: 7935e440ed9567bb5bd1c184e22503afd0a3e35991a292d53987c862ac79028b

Contents?: true

Size: 462 Bytes

Versions: 10

Compression:

Stored size: 462 Bytes

Contents

class CensusRegion < ActiveRecord::Base
  self.primary_key = "number"
  
  has_many :census_divisions, :foreign_key => 'census_region_number'
  has_many :states, :through => :census_divisions
  # has_many :climate_divisions, :through => :census_divisions
  # has_many :zip_codes, :through => :census_divisions
  has_many :residential_energy_consumption_survey_responses, :foreign_key => 'census_region_number'
  
  col :number, :type => :integer
  col :name
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
earth-0.11.20 lib/earth/locality/census_region.rb
earth-0.11.19 lib/earth/locality/census_region.rb
earth-0.11.18 lib/earth/locality/census_region.rb
earth-0.11.17 lib/earth/locality/census_region.rb
earth-0.11.16 lib/earth/locality/census_region.rb
earth-0.11.15 lib/earth/locality/census_region.rb
earth-0.11.14 lib/earth/locality/census_region.rb
earth-0.11.13 lib/earth/locality/census_region.rb
earth-0.11.12 lib/earth/locality/census_region.rb
earth-0.11.11 lib/earth/locality/census_region.rb