Sha256: 1430691757b95cee964413da5466af877488e1085c002fd92b2d7a96e56881e8

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

class State < ActiveRecord::Base
  set_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'
  belongs_to :petroleum_administration_for_defense_district, :foreign_key => 'petroleum_administration_for_defense_district_code'
  has_one :census_region, :through => :census_division
  
  def country
    Country.united_states
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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