|
|
|
@@ -31,7 +31,7 @@ class Team < ApplicationRecord |
|
|
|
|
|
|
|
validates :name, uniqueness: {scope: :organization_id} |
|
|
|
|
|
|
|
enum authorize: {common: 0, read: 1, write: 2, admin: 3, owner: 4} |
|
|
|
enum authorize: {read: 1, write: 2, admin: 3, owner: 4} |
|
|
|
|
|
|
|
def self.build(organization_id, name, nickname, description, authorize, includes_all_project, can_create_org_project) |
|
|
|
self.create!(organization_id: organization_id, |
|
|
|
|