From 5407fea87338e2de3fb4bbd8edcd671eed910a52 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 20 Oct 2024 07:51:38 +0000 Subject: Drop deprecated Redcarpet based Markdown formatter (#40149). Patch by Go MAEDA (user:maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@23153 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- ...144951_change_text_formatting_from_markdown_to_common_mark.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb (limited to 'db') diff --git a/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb b/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb new file mode 100644 index 000000000..984a889ca --- /dev/null +++ b/db/migrate/20241007144951_change_text_formatting_from_markdown_to_common_mark.rb @@ -0,0 +1,9 @@ +class ChangeTextFormattingFromMarkdownToCommonMark < ActiveRecord::Migration[7.2] + def up + Setting.find_by(name: 'text_formatting', value: 'markdown')&.update(value: 'common_mark') + end + + def down + # no-op + end +end -- cgit v1.2.3