|
|
|
@@ -28,6 +28,8 @@ class IssueTag < ApplicationRecord |
|
|
|
belongs_to :project, optional: true, counter_cache: true |
|
|
|
belongs_to :user, optional: true |
|
|
|
|
|
|
|
validates :name, uniqueness: {scope: :project_id, message: "已存在" } |
|
|
|
|
|
|
|
def self.init_data(project_id) |
|
|
|
data = [ |
|
|
|
["缺陷", "表示存在意外问题或错误", "#d92d4c"], |
|
|
|
|