chore: Revert the migration for inbox name changes (#4919)

This commit is contained in:
Pranav Raj S
2022-06-23 20:36:46 +05:30
committed by GitHub
parent f39c10395a
commit dcbca173ac
4 changed files with 8 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ class Inbox < ApplicationRecord
include Avatarable
include OutOfOffisable
validates :name, presence: true, format: { with: /^\b[\w\s]*\b$/, multiline: true }
validates :name, presence: true
validates :account_id, presence: true
validates :timezone, inclusion: { in: TZInfo::Timezone.all_identifiers }
validate :ensure_valid_max_assignment_limit