Chatwoot/db/migrate/20200404135009_add_unique_validation_index.rb

8 lines
304 B
Ruby
Raw Normal View History

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