today_ai_weather/db/seeds/cities/brazil.rb

16 lines
310 B
Ruby
Raw Normal View History

brazil = Country.find_by code: 'BR'
City.create!([
{
name: 'Rio de Janeiro',
latitude: -22.9068,
longitude: -43.1729,
country: brazil,
timezone: 'America/Sao_Paulo',
active: true,
priority: 80,
last_weather_fetch: 10.hours.ago,
last_image_generation: 10.hours.ago
}
])