mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 21:23:43 +08:00
16 lines
387 B
Ruby
16 lines
387 B
Ruby
|
# 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
|