songtianlun
799dfc18ed
- 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
534 B
Ruby
27 lines
534 B
Ruby
india = Country.find_by code: 'IN'
|
|
|
|
City.create!([
|
|
{
|
|
name: 'Mumbai',
|
|
latitude: 19.0760,
|
|
longitude: 72.8777,
|
|
country: india,
|
|
timezone: 'Asia/Kolkata',
|
|
active: true,
|
|
priority: 100,
|
|
last_weather_fetch: 10.days.ago,
|
|
last_image_generation: 10.days.ago
|
|
},
|
|
{
|
|
name: 'Bengaluru',
|
|
latitude: 12.9716,
|
|
longitude: 77.5946,
|
|
country: india,
|
|
timezone: 'Asia/Kolkata',
|
|
active: true,
|
|
priority: 100,
|
|
last_weather_fetch: 10.days.ago,
|
|
last_image_generation: 10.days.ago
|
|
}
|
|
])
|