mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 11:49:47 +08:00
![Martin Brennan](/assets/img/avatar_default.png)
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
|