Sha256: f9bbac82e346ff4f1061d37bf4bc0c01d529eb154e07fa37e8107af090fb6a91

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

class ZipCode < ActiveRecord::Base
  set_primary_key :name
  
  belongs_to :egrid_subregion, :foreign_key => 'egrid_subregion_abbreviation'
  belongs_to :climate_division, :foreign_key => 'climate_division_name'
  belongs_to :state, :foreign_key => 'state_postal_abbreviation'
#  has_one :census_division, :through => :state
#  has_one :census_region, :through => :state
  has_many :residences

  acts_as_mappable :default_units => :miles,  # FIXME imperial
                   :lat_column_name => :latitude,
                   :lng_column_name => :longitude
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sniff-0.0.3 lib/test_support/data_models/zip_code.rb
sniff-0.0.2 lib/test_support/data_models/zip_code.rb