feat: API to add label to contacts (#1563)

This commit is contained in:
Pranav Raj S
2021-01-03 20:07:57 +05:30
committed by GitHub
parent ea08fbcac4
commit a2d6fa0f74
10 changed files with 115 additions and 12 deletions

View File

@@ -26,6 +26,7 @@ class Contact < ApplicationRecord
include Pubsubable
include Avatarable
include AvailabilityStatusable
include Labelable
validates :account_id, presence: true
validates :email, allow_blank: true, uniqueness: { scope: [:account_id], case_sensitive: false }