diff --git a/app/models/city.rb b/app/models/city.rb index 87b730c..153bf92 100644 --- a/app/models/city.rb +++ b/app/models/city.rb @@ -1,7 +1,7 @@ class City < ApplicationRecord extend FriendlyId friendly_id :slug_candidates, use: :slugged - belongs_to :country + belongs_to :country, optional: true belongs_to :state, optional: true has_many :weather_arts, dependent: :destroy