You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20151020182731_fix_comma_in_user_format_setting_value.rb 401B

12345678910111213
  1. class FixCommaInUserFormatSettingValue < ActiveRecord::Migration[4.2]
  2. def self.up
  3. Setting.
  4. where(:name => 'user_format', :value => 'lastname_coma_firstname').
  5. update_all(:value => 'lastname_comma_firstname')
  6. end
  7. def self.down
  8. Setting.
  9. where(:name => 'user_format', :value => 'lastname_comma_firstname').
  10. update_all(:value => 'lastname_coma_firstname')
  11. end
  12. end