canvas-lms/db/migrate/20160601195833_remove_codec...

16 lines
307 B
Ruby

class RemoveCodecogsEquationImageSettingKey < ActiveRecord::Migration[4.2]
tag :postdeploy
def up
return unless Shard.current.default?
Setting.remove('codecogs.equation_image_link')
end
def down
return unless Shard.current.default?
Setting.remove('equation_image_url')
end
end