trabajo-afectivo/lib/tasks/zammad/db/rebuild.rake
2022-01-01 14:38:12 +01:00

16 lines
412 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
namespace :zammad do
namespace :db do
desc 'Clears the Cache and reloads the Settings'
task rebuild: :environment do
Package::Migration.linked
ActiveRecord::Base.connection.reconnect!
ActiveRecord::Base.descendants.each(&:reset_column_information)
Cache.clear
Setting.reload
end
end
end