discourse/db/migrate/20220107011124_drop_bookmark_polymorphic_trigger.rb
Martin Brennan 6b6c0fef4c
DEV: Drop bookmark trigger correctly (#15486)
Apparently `DROP FUNCTION X CASCADE` is the better way to
do this, we were running into cross-schema errors on try.
2022-01-07 15:20:07 +10:00

12 lines
268 B
Ruby

# frozen_string_literal: true
class DropBookmarkPolymorphicTrigger < ActiveRecord::Migration[6.1]
def up
DB.exec("DROP FUNCTION IF EXISTS sync_bookmarks_polymorphic_column_data CASCADE")
end
def down
raise ActiveRecord::IrreversibleMigration
end
end