From 7689e54a96cb029c8994e0bdea4f938ea2728b7d Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 16 Nov 2021 08:45:54 +1100 Subject: [PATCH] chore: drop index before dropping column because SQLite errors otherwise --- db/migrations/20210608_add_uuid_to_webhook.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/db/migrations/20210608_add_uuid_to_webhook.rb b/db/migrations/20210608_add_uuid_to_webhook.rb index 68d1f06d0..0a17b1921 100644 --- a/db/migrations/20210608_add_uuid_to_webhook.rb +++ b/db/migrations/20210608_add_uuid_to_webhook.rb @@ -8,6 +8,7 @@ down do alter_table(:triggered_webhooks) do + drop_index([:uuid], name: "triggered_webhooks_uuid") drop_column(:uuid) end end