From 1eaa3c5750d91e36b32906ef607c09f7b17481fe Mon Sep 17 00:00:00 2001 From: Kelv Date: Fri, 25 Oct 2024 14:57:10 +0800 Subject: [PATCH] DEV: resolve Rails/ReversibleMigrationMethodDefinition errors (#226) --- .../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 a1d462b..cf374ad 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 @@ class AddUniqueIndexToSlackThreadTs < ActiveRecord::Migration[6.1] 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