discourse/db/post_migrate/20210802131421_remove_post_processed_trigger_option.rb
Jarek Radosz 07c6b720bc
DEV: Remove PostProcessed trigger option (#13916)
It was deprecated 5 years ago in e55e2aff94

I've seen it still being used in the wild, even though it doesn't do anything anymore as I understand it.
2021-08-04 22:24:47 +02:00

13 lines
311 B
Ruby

# frozen_string_literal: true
class RemovePostProcessedTriggerOption < ActiveRecord::Migration[6.1]
def up
# Replace Badge::Trigger::PostProcessed (16) with None (0)
DB.exec("UPDATE badges SET trigger = 0 WHERE trigger = 16")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end