summaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-07-30 03:51:19 +0000
committerGo MAEDA <maeda@farend.jp>2021-07-30 03:51:19 +0000
commita6a8ef728c88fd15d5d9e993e829b88ee2108061 (patch)
tree207171f056cc6a4c8f33586cd21b62ced5efd5fd /app/controllers
parent5bec58c1f60c86dd9510599ee37c8d4a90fa9e27 (diff)
downloadredmine-a6a8ef728c88fd15d5d9e993e829b88ee2108061.tar.gz
redmine-a6a8ef728c88fd15d5d9e993e829b88ee2108061.zip
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
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/admin_controller.rb1
1 files changed, 1 insertions, 0 deletions
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?]