From 6396b38b885baf4e59c336bc13a1dea90f663dec Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Thu, 24 Oct 2024 18:03:54 +0800 Subject: [PATCH] DEV: resolve Rails/ReversibleMigrationMethodDefinition errors --- .../20211202120030_add_unique_index_to_slack_thread_ts.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb b/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb index a1d462b2..cf374add 100644 --- a/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb +++ b/db/migrate/20211202120030_add_unique_index_to_slack_thread_ts.rb @@ -8,4 +8,8 @@ def up where: "(name LIKE 'slack_thread_id_%')", name: "index_topic_custom_fields_on_topic_id_and_slack_thread_id" end + + def down + raise ActiveRecord::IrreversibleMigration + end end