today_ai_weather/db/migrate
songtianlun 06a861c639 refactor: clean up city model and adjust worker timing
- Implement caching methods for last weather fetch and image generation
- Adjust sleep duration in BatchGenerateWeatherArtsWorker from 10 seconds to 3 seconds
- Remove unused fields `last_weather_fetch` and `last_image_generation` from the cities table
- Add index on the weather_arts table for optimized querying

This refactor improves data retrieval performance for weather data
associated with cities. Caching reduces database load while the
worker modification allows for faster iterations in generating
weather arts without significantly impacting performance.
2025-01-23 23:59:48 +08:00
..
20250118163459_devise_create_admin_users.rb init with rails8 + active-admin 2025-01-19 01:13:59 +08:00
20250118163460_create_active_admin_comments.rb chore: clean up code style and unused fixtures 2025-01-20 18:08:55 +08:00
20250119022826_create_cities.rb feat: add friendly_id for cities and weather arts 2025-01-19 12:21:00 +08:00
20250119032146_add_slug_to_cities.rb feat: add friendly_id for cities and weather arts 2025-01-19 12:21:00 +08:00
20250119032158_create_friendly_id_slugs.rb chore: clean up code style and unused fixtures 2025-01-20 18:08:55 +08:00
20250119032316_create_weather_arts.rb feat: add friendly_id for cities and weather arts 2025-01-19 12:21:00 +08:00
20250119032348_create_active_storage_tables.active_storage.rb feat: add friendly_id for cities and weather arts 2025-01-19 12:21:00 +08:00
20250121015832_create_regions.rb feat: add countries and regions management 2025-01-21 18:27:26 +08:00
20250121015841_create_countries.rb feat: add countries and regions management 2025-01-21 18:27:26 +08:00
20250121015849_add_country_to_cities.rb feat: add countries and regions management 2025-01-21 18:27:26 +08:00
20250121020653_remove_geographic_fields_from_cities.rb feat: add countries and regions management 2025-01-21 18:27:26 +08:00
20250122053220_add_slug_to_weather_arts.rb feat: enhance weather arts and cities features 2025-01-22 14:04:58 +08:00
20250123155234_remove_last_fetch_fields_from_cities.rb refactor: clean up city model and adjust worker timing 2025-01-23 23:59:48 +08:00