提交 2750d7e6 编写于 作者: D Douwe Maan

Merge branch...

Merge branch '41041-undefined-method-new_project_guidelines_html-unable-to-load-from-cache' into 'master'

Resolve "undefined method `new_project_guidelines_html', unable to load from cache"

Closes #41041

See merge request gitlab-org/gitlab-ce!15878
...@@ -4,6 +4,12 @@ class AddNewProjectGuidelinesToAppearances < ActiveRecord::Migration ...@@ -4,6 +4,12 @@ class AddNewProjectGuidelinesToAppearances < ActiveRecord::Migration
DOWNTIME = false DOWNTIME = false
def change def change
# Clears the current Appearance cache otherwise it breaks since
# new_project_guidelines_html would be missing. See
# https://gitlab.com/gitlab-org/gitlab-ce/issues/41041
# We're not using Appearance#flush_redis_cache on purpose here.
Rails.cache.delete('current_appearance')
change_table :appearances do |t| change_table :appearances do |t|
t.text :new_project_guidelines t.text :new_project_guidelines
t.text :new_project_guidelines_html t.text :new_project_guidelines_html
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册