From b85f2fa4c7dca83d9fabb702562c3b4244231741 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Tue, 25 Apr 2017 14:46:13 +0200 Subject: Clear html cache for a projects milestones --- lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb index 7838951c703..de4e6e7c404 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb @@ -107,6 +107,10 @@ module Gitlab update_column_in_batches(:notes, :note_html, nil) do |table, query| query.where(table[:project_id].in(project_ids)) end + + update_column_in_batches(:milestones, :description_html, nil) do |table, query| + query.where(table[:project_id].in(project_ids)) + end end def file_storage? -- cgit v1.2.1