mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
add: team nickname
This commit is contained in:
@@ -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
|
||||||
|
|||||||
5
db/migrate/20210419023310_add_nickname_to_teams.rb
Normal file
5
db/migrate/20210419023310_add_nickname_to_teams.rb
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
class AddNicknameToTeams < ActiveRecord::Migration[5.2]
|
||||||
|
def change
|
||||||
|
add_column :teams, :nickname, :string
|
||||||
|
end
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user