mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
Patch by Mizuki ISHIKAWA (user:ishikawa999) and Marius BALTEANU (user:marius.balteanu). git-svn-id: https://svn.redmine.org/redmine/trunk@23811 e93f8b46-1217-0410-a6f0-8f06a7374b81
18 lines
612 B
Ruby
18 lines
612 B
Ruby
class CreateSettings < ActiveRecord::Migration[4.2]
|
|
def self.up
|
|
create_table :settings, :force => true do |t|
|
|
t.column "name", :string, :limit => 30, :default => "", :null => false
|
|
t.column "value", :text
|
|
end
|
|
|
|
# Persist default settings for new installations
|
|
Setting.create!(name: 'default_notification_option', value: Setting.default_notification_option)
|
|
Setting.create!(name: 'text_formatting', value: Setting.text_formatting)
|
|
Setting.create!(name: 'wiki_tablesort_enabled', value: Setting.wiki_tablesort_enabled)
|
|
end
|
|
|
|
def self.down
|
|
drop_table :settings
|
|
end
|
|
end
|