From 3d0e32380145aac8574ee1773e0762978369f8fb Mon Sep 17 00:00:00 2001 From: yystopf Date: Fri, 17 Jun 2022 14:07:33 +0800 Subject: [PATCH] fix --- app/models/project_unit.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/project_unit.rb b/app/models/project_unit.rb index 01f6c6670..c3810ff8c 100644 --- a/app/models/project_unit.rb +++ b/app/models/project_unit.rb @@ -15,7 +15,6 @@ class ProjectUnit < ApplicationRecord - default_scope {where(unit_type: ProjectUnit.unit_types.keys)} belongs_to :project enum unit_type: {code: 1, issues: 2, pulls: 3, wiki:4, devops: 5, versions: 6, resources: 7}