Sha256: 29042b1f131a916098476c0dca651dca67e69bc0b4d0715794a46dc24a7e4ebe

Contents?: true

Size: 591 Bytes

Versions: 22

Compression:

Stored size: 591 Bytes

Contents

class CensusDivision < ActiveRecord::Base
  set_primary_key :number
  
  belongs_to :census_region, :foreign_key => 'census_region_number'
  has_many :states, :foreign_key => 'census_division_number'
  has_many :zip_codes, :through => :states
  has_many :climate_divisions, :through => :states
  has_many :residential_energy_consumption_survey_responses, :foreign_key => 'census_division_number'
  
  data_miner do
    tap "Brighter Planet's sanitized census divisions", Earth.taps_server

    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
earth-0.0.40 lib/earth/locality/census_division.rb
earth-0.0.39 lib/earth/locality/census_division.rb
earth-0.0.38 lib/earth/locality/census_division.rb
earth-0.0.37 lib/earth/locality/census_division.rb
earth-0.0.36 lib/earth/locality/census_division.rb
earth-0.0.35 lib/earth/locality/census_division.rb
earth-0.0.34 lib/earth/locality/census_division.rb
earth-0.0.33 lib/earth/locality/census_division.rb
earth-0.0.32 lib/earth/locality/census_division.rb
earth-0.0.31 lib/earth/locality/census_division.rb
earth-0.0.30 lib/earth/locality/census_division.rb
earth-0.0.29 lib/earth/locality/census_division.rb
earth-0.0.28 lib/earth/locality/census_division.rb
earth-0.0.27 lib/earth/locality/census_division.rb
earth-0.0.26 lib/earth/locality/census_division.rb
earth-0.0.24 lib/earth/locality/census_division.rb
earth-0.0.23 lib/earth/locality/census_division.rb
earth-0.0.22 lib/earth/locality/census_division.rb
earth-0.0.21 lib/earth/locality/census_division.rb
earth-0.0.20 lib/earth/locality/census_division.rb