mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
更改:校验scope新增project_id
This commit is contained in:
@@ -28,7 +28,7 @@ class IssueTag < ApplicationRecord
|
||||
belongs_to :project, optional: true, counter_cache: true
|
||||
belongs_to :user, optional: true
|
||||
|
||||
validates :name, uniqueness: { message: "已存在" }
|
||||
validates :name, uniqueness: {scope: :project_id, message: "已存在" }
|
||||
|
||||
def self.init_data(project_id)
|
||||
data = [
|
||||
|
||||
Reference in New Issue
Block a user