Make common_mark the default text formatting for new installations (#34863).

git-svn-id: https://svn.redmine.org/redmine/trunk@21897 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu
2022-10-04 19:19:15 +00:00
parent ba635eace9
commit 9fc669a888
5 changed files with 19 additions and 2 deletions

View File

@@ -4,6 +4,10 @@ class CreateSettings < ActiveRecord::Migration[4.2]
t.column "name", :string, :limit => 30, :default => "", :null => false
t.column "value", :text
end
# Persist text_formatting default setting for new installations
setting = Setting.new(:name => "text_formatting", :value => Setting.text_formatting)
setting.save!
end
def self.down