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