- Changed 'last_weather_fetch' and 'last_image_generation' from 10.hours.ago to 10.days.ago for various cities - Affects seed data for cities in multiple countries, including: - Australia - Bangladesh - Brazil - Canada - China - Egypt - France - Germany - India - Japan - Mexico - Nigeria - Pakistan - Russia - Saudi Arabia - Singapore - South Korea - Thailand - Turkey - UK - USA - Vietnam This change ensures that the timestamps reflect a more refined time range for when last weather data was fetched, possibly to enhance performance or consistency in application behavior.
27 lines
546 B
Ruby
27 lines
546 B
Ruby
russia = Country.find_by code: 'RU'
|
|
|
|
City.create!([
|
|
{
|
|
name: 'Moscow',
|
|
latitude: 55.7558,
|
|
longitude: 37.6173,
|
|
country: russia,
|
|
timezone: 'Europe/Moscow',
|
|
active: true,
|
|
priority: 100,
|
|
last_weather_fetch: 10.days.ago,
|
|
last_image_generation: 10.days.ago
|
|
},
|
|
{
|
|
name: 'Sankt Petersburg',
|
|
latitude: 59.9311,
|
|
longitude: 30.3609,
|
|
country: russia,
|
|
timezone: 'Europe/Moscow',
|
|
active: true,
|
|
priority: 100,
|
|
last_weather_fetch: 10.days.ago,
|
|
last_image_generation: 10.days.ago
|
|
}
|
|
])
|