chore: Add contact note model (#2462)

This commit is contained in:
Muhsin Keloth
2021-06-21 15:16:26 +05:30
committed by GitHub
parent f809431074
commit 3d748aa8d4
8 changed files with 96 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ class User < ApplicationRecord
has_many :notification_subscriptions, dependent: :destroy
has_many :team_members, dependent: :destroy
has_many :teams, through: :team_members
has_many :notes, dependent: :nullify
before_validation :set_password_and_uid, on: :create