discourse/plugins/discourse-lazy-videos/db/migrate/20230317194217_rebake_lazy_yt_posts.rb
Selase Krakani d5d0bab19d
DEV: Promote historic post_deploy migrations (#25334)
This commit promotes all post_deploy migrations which existed in Discourse v3.1.0 (timestamp <= 20230405121454)
2024-01-19 14:47:42 +00:00

15 lines
253 B
Ruby

# frozen_string_literal: true
class RebakeLazyYtPosts < ActiveRecord::Migration[7.0]
def up
execute <<~SQL
UPDATE posts SET baked_version = 0
WHERE cooked LIKE '%lazyYT-container%'
SQL
end
def down
# do nothing
end
end