DEV: resolve Rails/ReversibleMigrationMethodDefinition errors (#226)

This commit is contained in:
Kelv 2024-10-25 14:57:10 +08:00 committed by GitHub
parent 19766fbc09
commit 1eaa3c5750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -8,4 +8,8 @@ class AddUniqueIndexToSlackThreadTs < ActiveRecord::Migration[6.1]
where: "(name LIKE 'slack_thread_id_%')", where: "(name LIKE 'slack_thread_id_%')",
name: "index_topic_custom_fields_on_topic_id_and_slack_thread_id" name: "index_topic_custom_fields_on_topic_id_and_slack_thread_id"
end end
def down
raise ActiveRecord::IrreversibleMigration
end
end end