feat: Support Twilio Messaging Services (#4242)
This allows sending and receiving from multiple phone numbers using Twilio messaging services Fixes: #4204
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class AddMessagingServiceSidToChannelTwilioSms < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
change_column_null :channel_twilio_sms, :phone_number, true
|
||||
add_column :channel_twilio_sms, :messaging_service_sid, :string
|
||||
add_index :channel_twilio_sms, [:messaging_service_sid], unique: true
|
||||
end
|
||||
end
|
||||
@@ -290,14 +290,16 @@ ActiveRecord::Schema.define(version: 2022_07_06_085458) do
|
||||
end
|
||||
|
||||
create_table "channel_twilio_sms", force: :cascade do |t|
|
||||
t.string "phone_number", null: false
|
||||
t.string "phone_number"
|
||||
t.string "auth_token", null: false
|
||||
t.string "account_sid", null: false
|
||||
t.integer "account_id", null: false
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.integer "medium", default: 0
|
||||
t.index ["account_sid", "phone_number"], name: "index_channel_twilio_sms_on_account_sid_and_phone_number", unique: true
|
||||
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 ["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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user