From 05db053f60a2d6ecb0532a99abedbb1f68f69add Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Mon, 11 Jul 2022 20:12:48 +0200 Subject: [PATCH] chore: fix schema error from PR merges (#5016) --- app/models/agent_bot.rb | 2 +- app/models/channel/twilio_sms.rb | 6 +++--- db/schema.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/agent_bot.rb b/app/models/agent_bot.rb index 337b3a2b6..6a38167dc 100644 --- a/app/models/agent_bot.rb +++ b/app/models/agent_bot.rb @@ -4,7 +4,7 @@ # # id :bigint not null, primary key # bot_config :jsonb -# bot_type :integer default(0) +# bot_type :integer default("webhook") # description :string # name :string # outgoing_url :string diff --git a/app/models/channel/twilio_sms.rb b/app/models/channel/twilio_sms.rb index 6a7d6d9dc..d6c9177fb 100644 --- a/app/models/channel/twilio_sms.rb +++ b/app/models/channel/twilio_sms.rb @@ -14,9 +14,9 @@ # # Indexes # -# index_channel_twilio_sms_on_account_id_and_phone_number (account_id,phone_number) UNIQUE -# index_channel_twilio_sms_on_messaging_service_sid (messaging_service_sid) UNIQUE -# index_channel_twilio_sms_on_phone_number (phone_number) UNIQUE +# index_channel_twilio_sms_on_account_sid_and_phone_number (account_sid,phone_number) UNIQUE +# index_channel_twilio_sms_on_messaging_service_sid (messaging_service_sid) UNIQUE +# index_channel_twilio_sms_on_phone_number (phone_number) UNIQUE # class Channel::TwilioSms < ApplicationRecord diff --git a/db/schema.rb b/db/schema.rb index 9d8ac07e1..cd7d4eac7 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -298,7 +298,7 @@ ActiveRecord::Schema.define(version: 2022_07_06_085458) do t.datetime "updated_at", precision: 6, null: false t.integer "medium", default: 0 t.string "messaging_service_sid" - t.index ["account_id", "phone_number"], name: "index_channel_twilio_sms_on_account_id_and_phone_number", unique: true + t.index ["account_sid", "phone_number"], name: "index_channel_twilio_sms_on_account_sid_and_phone_number", unique: true t.index ["messaging_service_sid"], name: "index_channel_twilio_sms_on_messaging_service_sid", unique: true t.index ["phone_number"], name: "index_channel_twilio_sms_on_phone_number", unique: true end