today_ai_weather/db/migrate
songtianlun 2ffb1a4248 refactor: Convert country timezones to JSON and handle errors
This commit refactors the database migration to convert the
timezones for each country in the database to a JSON format.
It addresses an issue where the timezone data was not properly
formatted. It provides a default value if there's an error to avoid
data loss. It also includes error handling to catch and log exceptions
during the migration process, preventing the entire migration from failing.
2025-02-15 16:54:59 +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: tidy up code style and remove unused fields 2025-01-24 00:25:06 +08:00
20250126155239_create_ahoy_visits_and_events.rb chore: clean up trailing whitespace and formatting 2025-01-27 00:43:36 +08:00
20250208052451_migrate_with_countries_states_cities_database.rb feat: update database schema 2025-02-09 21:55:47 +08:00
20250208052549_create_states.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
20250208052634_create_subregions.rb migrate with countries_states_cities_db 2025-02-08 17:42:50 +08:00
20250211035423_devise_create_users.rb feat: enhance user authentication features 2025-02-11 16:18:10 +08:00
20250215084540_convert_country_timezones_to_json.rb refactor: Convert country timezones to JSON and handle errors 2025-02-15 16:54:59 +08:00