From a6a8ef728c88fd15d5d9e993e829b88ee2108061 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 30 Jul 2021 03:51:19 +0000 Subject: Show warning in admin/info when there are pending migrations (#35562). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21110 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/admin_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/controllers') diff --git a/app/controllers/admin_controller.rb b/app/controllers/admin_controller.rb index a7404abcc..27e87670d 100644 --- a/app/controllers/admin_controller.rb +++ b/app/controllers/admin_controller.rb @@ -76,6 +76,7 @@ class AdminController < ApplicationController [:text_default_administrator_account_changed, User.default_admin_account_changed?], [:text_file_repository_writable, File.writable?(Attachment.storage_path)], ["#{l :text_plugin_assets_writable} (./public/plugin_assets)", File.writable?(Redmine::Plugin.public_directory)], + [:text_all_migrations_have_been_run, !ActiveRecord::Base.connection.migration_context.needs_migration?], [:text_minimagick_available, Object.const_defined?(:MiniMagick)], [:text_convert_available, Redmine::Thumbnail.convert_available?], [:text_gs_available, Redmine::Thumbnail.gs_available?] -- cgit v1.2.3