1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

Fix setting value if used (#20551).

git-svn-id: http://svn.redmine.org/redmine/trunk@14713 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-10-20 18:30:23 +00:00
parent 11bce09825
commit 3d46730ff0

View File

@ -0,0 +1,13 @@
class FixCommaInUserFormatSettingValue < ActiveRecord::Migration
def self.up
Setting.
where(:name => 'user_format', :value => 'lastname_coma_firstname').
update_all(:value => 'lastname_comma_firstname')
end
def self.down
Setting.
where(:name => 'user_format', :value => 'lastname_comma_firstname').
update_all(:value => 'lastname_coma_firstname')
end
end