Merge pull request #3611 from PierreMesure/adding-missing-subtasks-to-upgrade-task

Adding missing subtasks to upgrade task and adding info log
This commit is contained in:
Javier Martín
2019-09-11 21:26:45 +02:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ namespace :consul do
"stats_and_results:migrate_to_reports",
"budgets:calculate_ballot_lines",
"settings:remove_deprecated_settings",
"settings:rename_setting_keys",
"settings:add_new_settings",
"stats:generate"
]
end

View File

@@ -30,6 +30,7 @@ namespace :settings do
desc "Rename existing settings"
task rename_setting_keys: :environment do
ApplicationLogger.new.info "Renaming existing settings"
Setting.rename_key from: "map_latitude", to: "map.latitude"
Setting.rename_key from: "map_longitude", to: "map.longitude"
Setting.rename_key from: "map_zoom", to: "map.zoom"
@@ -50,6 +51,7 @@ namespace :settings do
desc "Add new settings"
task add_new_settings: :environment do
ApplicationLogger.new.info "Adding new settings"
Setting.add_new_settings
end