discourse/db/migrate/20200714105026_delete_allow_animated_avatars_site_setting.rb
Bianca Nenciu 43e52a7dc1
DEV: Remove gifsicle dependency (#10357)
Dependency on gifsicle, allow_animated_avatars and allow_animated_thumbnails
site settings were all removed. Animated GIF images are still allowed, but
the generated optimized images are no longer animated for those (which were
used for avatars and thumbnails).

The added 'animated' is populated by extracting information using FastImage.
This field was used to selectively reoptimize old animations. This process
happens in the background.
2020-10-16 13:41:27 +03:00

12 lines
271 B
Ruby

# frozen_string_literal: true
class DeleteAllowAnimatedAvatarsSiteSetting < ActiveRecord::Migration[6.0]
def up
execute "DELETE FROM site_settings WHERE name = 'allow_animated_avatars'"
end
def down
raise ActiveRecord::IrreversibleMigration.new
end
end