forked from Gitlink/forgeplus
add: team nickname
This commit is contained in:
parent
de6ae5b720
commit
3a47c61010
|
@ -60,7 +60,7 @@ class Organizations::TeamsController < Organizations::BaseController
|
||||||
|
|
||||||
private
|
private
|
||||||
def team_params
|
def team_params
|
||||||
params.permit(:name, :description, :authorize, :includes_all_project, :can_create_org_project, :unit_types => [])
|
params.permit(:name, :nickname, :description, :authorize, :includes_all_project, :can_create_org_project, :unit_types => [])
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_organization
|
def load_organization
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
# gtid :integer
|
# gtid :integer
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
|
# nickname :string(255)
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
json.id team.id
|
json.id team.id
|
||||||
json.name team.name
|
json.name team.name
|
||||||
|
json.nickname team.nickname
|
||||||
json.description team.description
|
json.description team.description
|
||||||
json.authorize team.authorize
|
json.authorize team.authorize
|
||||||
json.includes_all_project team.includes_all_project
|
json.includes_all_project team.includes_all_project
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
class AddNicknameToTeams < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :teams, :nickname, :string
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue