today_ai_weather/lib
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
..
data migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
tasks fix: improve country creation logic 2025-02-10 17:07:48 +08:00