Chatwoot/db/migrate/20200404135009_add_unique_validation_index.rb
Pranav Raj S a1a81e3799
Feature: Twilio SMS Channel (#658)
Twilio SMS Channel
Fixes :  #350
2020-04-05 22:11:27 +05:30

7 lines
304 B
Ruby

class AddUniqueValidationIndex < ActiveRecord::Migration[6.0]
def change
add_index :channel_twitter_profiles, [:account_id, :profile_id], unique: true
add_index :channel_twilio_sms, [:account_id, :phone_number], unique: true
add_index :webhooks, [:account_id, :url], unique: true
end
end