today_ai_weather/lib
songtianlun 3da2abbfaa refactor: improve city syncing logic
- Use `find_or_initialize_by` to ensure uniqueness based on
  multiple attributes.
- Replace multiple `update!` calls with `assign_attributes` for
  better readability and maintainability.
- Add error handling for city saving process to log errors
  if saving fails.

These changes streamline the city syncing process, making it
more efficient and easier to understand while ensuring that
cities are created or updated correctly based on unique
attributes.
2025-02-26 14:36:38 +08:00
..
data migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
tasks refactor: improve city syncing logic 2025-02-26 14:36:38 +08:00