Sha256: db359460f64d897701c774aaf7bc6fe5a03a14bc623f284fa29f3404beb898aa

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 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

  warn_unless_size 4
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
earth-0.12.4 lib/earth/locality/census_region.rb
earth-0.12.3 lib/earth/locality/census_region.rb
earth-0.12.2 lib/earth/locality/census_region.rb
earth-0.12.1 lib/earth/locality/census_region.rb
earth-0.12.0 lib/earth/locality/census_region.rb