From 14a9b48d49140519288f84093447a696bfc18fba Mon Sep 17 00:00:00 2001 From: Tanmay Deep Sharma Date: Tue, 5 May 2026 16:27:33 +0700 Subject: [PATCH] chore: drop Channel::Voice stub (out of scope for this PR) The legacy-row stub for Channel::Voice belongs with the upstream DropChannelVoice migration cleanup, not with WhatsApp call wiring. Removing it keeps the PR's surface focused on the call pipeline. --- enterprise/app/models/channel/voice.rb | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 enterprise/app/models/channel/voice.rb diff --git a/enterprise/app/models/channel/voice.rb b/enterprise/app/models/channel/voice.rb deleted file mode 100644 index c98816df4..000000000 --- a/enterprise/app/models/channel/voice.rb +++ /dev/null @@ -1,8 +0,0 @@ -# Stub for legacy inboxes whose channel_type is still 'Channel::Voice' after -# the upstream DropChannelVoice migration moved voice fields onto -# Channel::TwilioSms. Pointing at the new table lets Rails resolve -# `belongs_to :channel, polymorphic: true` lookups to nil (no matching row), -# so jbuilder `.try` chains short-circuit instead of raising. -class Channel::Voice < ApplicationRecord - self.table_name = 'channel_twilio_sms' -end