From c95ad8dd4f6080f5a7db790b561026c92e56ae04 Mon Sep 17 00:00:00 2001 From: Sojan Jose Date: Tue, 30 Mar 2021 16:02:41 +0530 Subject: [PATCH] chore: Remove validation on team name (#2014) --- app/models/team.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/models/team.rb b/app/models/team.rb index 605267ce4..9f6c2f3ed 100644 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -20,8 +20,6 @@ # fk_rails_... (account_id => accounts.id) # class Team < ApplicationRecord - include RegexHelper - belongs_to :account has_many :team_members, dependent: :destroy has_many :members, through: :team_members, source: :user @@ -29,7 +27,6 @@ class Team < ApplicationRecord validates :name, presence: { message: 'must not be blank' }, - format: { with: UNICODE_CHARACTER_NUMBER_HYPHEN_UNDERSCORE }, uniqueness: { scope: :account_id } before_validation do