mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 02:13:38 +08:00
6b6c0fef4c
Apparently `DROP FUNCTION X CASCADE` is the better way to do this, we were running into cross-schema errors on try.
12 lines
268 B
Ruby
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
|