mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-12 13:26:45 +00:00
17 lines
329 B
Ruby
17 lines
329 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class RemoveLegacyUserSettingsData < ActiveRecord::Migration[7.2]
|
||
|
def up
|
||
|
connection.execute(<<~SQL.squish)
|
||
|
DELETE FROM settings
|
||
|
WHERE
|
||
|
thing_type IS NOT NULL
|
||
|
AND thing_id IS NOT NULL
|
||
|
SQL
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
raise ActiveRecord::IrreversibleMigration
|
||
|
end
|
||
|
end
|