discourse/db/migrate/20220107011124_drop_bookmar...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
343 B
Ruby
Raw Normal View History

# 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