rename 'convert_pasted_images_quality' site setting to 'png_to_jpg_quality'

This commit is contained in:
Régis Hanol 2017-05-11 10:01:20 +02:00
parent 0ccd77eb7b
commit eabfc59d51
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
class RenameConvertPastedImagesQualitySiteSetting < ActiveRecord::Migration
def up
execute "UPDATE site_settings SET name = 'png_to_jpg_quality' WHERE name = 'convert_pasted_images_quality'"
end
def down
execute "UPDATE site_settings SET name = 'convert_pasted_images_quality' WHERE name = 'png_to_jpg_quality'"
end
end