mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 21:05:58 +08:00
f3aab19829
This commit promotes all post_deploy migrations which existed in Discourse v2.7.13 (timestamp <= 20210328233843) This reduces the likelihood of issues relating to migration run order Also fixes a couple of typos in `script/promote_migrations`
15 lines
284 B
Ruby
15 lines
284 B
Ruby
# frozen_string_literal: true
|
|
|
|
class DropFlashOneboxSiteSetting < ActiveRecord::Migration[6.0]
|
|
def up
|
|
execute <<~SQL
|
|
DELETE FROM site_settings
|
|
WHERE name = 'enable_flash_video_onebox'
|
|
SQL
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|