lib/earth/locality/zip_code.rb in earth-0.11.18 vs lib/earth/locality/zip_code.rb in earth-0.11.19

- old
+ new

@@ -4,9 +4,11 @@ self.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_many :electric_markets, :foreign_key => 'zip_code_name' + has_many :electric_utilities, :through => :electric_markets def country Country.united_states end