mirror of
https://github.com/discourse/discourse.git
synced 2026-08-05 20:29:55 +08:00
This was causing restores to fail. The trigger is also unnecessary
because the `topic_id` column is already marked as read-only.
Follow-up to eeeb7d302f
11 lines
257 B
Ruby
Vendored
11 lines
257 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
class RemoveTriggerOnTopicTimers < ActiveRecord::Migration[8.0]
|
|
def up
|
|
execute("DROP FUNCTION IF EXISTS mirror_topic_timers_topic_id() CASCADE;")
|
|
end
|
|
|
|
def down
|
|
raise ActiveRecord::IrreversibleMigration
|
|
end
|
|
end
|