mirror of
https://github.com/discourse/discourse.git
synced 2024-12-25 19:13:44 +08:00
15 lines
312 B
Ruby
15 lines
312 B
Ruby
|
# frozen_string_literal: true
|
||
|
class RebakeUserOnebox < ActiveRecord::Migration[7.1]
|
||
|
def up
|
||
|
# Rebake user onebox posts for fontawesome6 upgrade
|
||
|
execute <<~SQL
|
||
|
UPDATE posts SET baked_version = 0
|
||
|
WHERE cooked LIKE '%d-icon-map-marker-alt%'
|
||
|
SQL
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
# do nothing
|
||
|
end
|
||
|
end
|