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