today_ai_weather/db/seeds/cities/south_korea.rb

16 lines
302 B
Ruby
Raw Normal View History

south_korea = Country.find_by code: 'KR'
City.create!([
{
name: 'Seoul',
latitude: 37.5665,
longitude: 126.9780,
country: south_korea,
timezone: 'Asia/Seoul',
active: true,
priority: 100,
last_weather_fetch: 10.days.ago,
last_image_generation: 10.days.ago
}
])