today_ai_weather/db/seeds/cities/uk.rb

16 lines
289 B
Ruby
Raw Permalink Normal View History

uk = Country.find_by code: 'GB'
City.create!([
{
name: 'London',
latitude: 51.5074,
longitude: -0.1278,
country: uk,
timezone: 'Europe/London',
active: true,
priority: 100,
last_weather_fetch: 10.hours.ago,
last_image_generation: 10.hours.ago
}
])