today_ai_weather/lib/tasks
songtianlun 27100aec24 fix: improve country creation logic
- Change method from find_or_create_by to find and check for nil
- Initialize a new Country object only if none exists

This fix addresses the potential issue where a country
is being unnecessarily created instead of found, improving
the efficiency of the country data synchronization process.
This change also adds clarity to the method's intent by
clearly separating the find and the initialization logic.
2025-02-10 17:07:48 +08:00
..
.keep init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
study_rake.rake migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
sync_geo_data.rake fix: improve country creation logic 2025-02-10 17:07:48 +08:00