mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
Add missing migration for #40588 that keeps the @wiki_tablesort_enabled@ setting unchanged for existing installations.
git-svn-id: https://svn.redmine.org/redmine/trunk@23828 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class EnsureWikiTablesortSettingIsStoredInDb < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
unless Setting.where(name: "wiki_tablesort_enabled").exists?
|
||||
setting = Setting.new(:name => "wiki_tablesort_enabled", :value => 1)
|
||||
setting.save!
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user