mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-05 23:25:46 +08:00
Merge pull request #3139 from aignatov-bio/ai-sci-fix-merging-issue
Fix duplicate code
This commit is contained in:
commit
0330c265cf
1 changed files with 1 additions and 3 deletions
|
@ -7,9 +7,7 @@ class ProjectFolder < ApplicationRecord
|
|||
|
||||
validates :name,
|
||||
length: { minimum: Constants::NAME_MIN_LENGTH,
|
||||
maximum: Constants::NAME_MAX_LENGTH },
|
||||
validates :name, length: { minimum: Constants::NAME_MIN_LENGTH,
|
||||
maximum: Constants::NAME_MAX_LENGTH }
|
||||
maximum: Constants::NAME_MAX_LENGTH }
|
||||
validates :name, uniqueness: { scope: %i(team_id parent_folder_id), case_sensitive: false },
|
||||
if: -> { parent_folder.present? }
|
||||
validates :name, uniqueness: { scope: %i(team_id archived), case_sensitive: false },
|
||||
|
|
Loading…
Reference in a new issue