today_ai_weather/db/seeds/cities/singapore.rb

16 lines
307 B
Ruby
Raw Normal View History

singapore = Country.find_by code: 'SG'
City.create!([
{
name: 'Singapore',
latitude: 1.3521,
longitude: 103.8198,
country: singapore,
timezone: 'Asia/Singapore',
active: true,
priority: 100,
last_weather_fetch: 10.hours.ago,
last_image_generation: 10.hours.ago
}
])