Sha256: 395782c02c3ce2749519bf6ccf9f154e3ea549cce6301546434a3052f4df070d
Contents?: true
Size: 894 Bytes
Versions: 8
Compression:
Stored size: 894 Bytes
Contents
class State < ActiveRecord::Base self.primary_key = "postal_abbreviation" has_many :climate_divisions, :foreign_key => 'state_postal_abbreviation' has_many :zip_codes, :foreign_key => 'state_postal_abbreviation' belongs_to :census_division, :foreign_key => 'census_division_number' has_one :census_region, :through => :census_division belongs_to :petroleum_administration_for_defense_district, :foreign_key => 'petroleum_administration_for_defense_district_code' def country Country.united_states end col :postal_abbreviation col :fips_code, :type => :integer col :name col :census_division_number, :type => :integer col :petroleum_administration_for_defense_district_code col :population, :type => :integer col :electricity_emission_factor, :type => :float col :electricity_emission_factor_units col :electricity_loss_factor, :type => :float end
Version data entries
8 entries across 8 versions & 1 rubygems