app/models/city.rb in geopolitical-1.0.5 vs app/models/city.rb in geopolitical-2.0.0

- old
+ new

@@ -12,10 +12,10 @@ spatial_scope :geom attr_writer :x, :y, :z - belongs_to :region, inverse_of: :cities + belongs_to :region, inverse_of: :cities, optional: true belongs_to :nation, inverse_of: :cities has_many :hoods has_one :nation_governancy, as: :nation_capital, class_name: 'Nation' has_one :region_governancy, as: :region_capital, class_name: 'Region'