Class: WorldDb::Model::Place

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/worlddb/models/place.rb,
lib/worlddb/models/forward.rb

Instance Method Summary collapse

Instance Method Details

#stateObject

todo: depending on type

has_one continent, country, state, city etc.


10
# File 'lib/worlddb/models/place.rb', line 10

has_one :state,  class_name: 'State',  foreign_key: 'place_id'