diff --git a/db/migrate/20220330160740_cleanup_selectable_avatars_data.rb b/db/migrate/20220330160740_cleanup_selectable_avatars_data.rb new file mode 100644 index 00000000000..c13368c3abe --- /dev/null +++ b/db/migrate/20220330160740_cleanup_selectable_avatars_data.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +class CleanupSelectableAvatarsData < ActiveRecord::Migration[7.0] + def up + # This setting is invalid (a backup from 20200810194943_change_selectable_avatars_site_setting.rb) + execute <<~SQL + DELETE FROM site_settings + WHERE name = 'selectable_avatars_urls' + SQL + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end