discourse/db/migrate/20220107011124_drop_bookmar...

13 lines
343 B
Ruby

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