Browse Source

fix

tags/v3.1.5
yystopf 4 years ago
parent
commit
e8496e77dc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/models/project_unit.rb

+ 1
- 1
app/models/project_unit.rb View File

@@ -16,7 +16,7 @@
class ProjectUnit < ApplicationRecord
belongs_to :project

enum unit_type: {code: 1, issues: 2, pulls: 3, devops: 4, versions: 5, resources: 6, wiki: 7}
enum unit_type: {code: 1, issues: 2, pulls: 3, wiki:4, devops: 5, versions: 6, resources: 7}

validates :unit_type, uniqueness: { scope: :project_id}



Loading…
Cancel
Save