|
1. Reset the thape_prod and run `cap production deploy`.
|
|
1. Reset the thape_prod and run `cap production deploy`.
|
|
|
|
|
|
2. setting new project custom fields
|
|
2. Remove in-app widget.
|
|
|
|
|
|
`bin/rails c`
|
|
|
|
|
|
|
|
```ruby
|
|
|
|
# for project custom fields only
|
|
|
|
section = ProjectCustomFieldSection.first
|
|
|
|
|
|
|
|
# trigger acts_as_list callbacks via updating each record instead of bulk update
|
|
|
|
ProjectCustomField.find_each do |project_custom_field|
|
|
|
|
project_custom_field.update!(custom_field_section_id: section.id)
|
|
|
|
end
|
|
|
|
```
|
|
|
|
|
|
|
|
3. Remove in-app widget.
|
|
|
|
|
|
|
|
```sql
|
|
```sql
|
|
DELETE FROM public.grid_widgets WHERE identifier='inbox';
|
|
DELETE FROM public.grid_widgets WHERE identifier='inbox';
|
... | @@ -22,8 +8,8 @@ DELETE FROM public.grid_widgets WHERE identifier='inbox'; |
... | @@ -22,8 +8,8 @@ DELETE FROM public.grid_widgets WHERE identifier='inbox'; |
|
|
|
|
|
Manually adjust the home page of every project.
|
|
Manually adjust the home page of every project.
|
|
|
|
|
|
4. Permission change (admin side). https://plm.thape.com.cn/admin/roles/report
|
|
3. Permission change (admin side). https://plm.thape.com.cn/admin/roles/report
|
|
5. 天华成员的模块要启用
|
|
4. 天华成员的模块要启用
|
|
|
|
|
|
```ruby
|
|
```ruby
|
|
Project.all.each do |p|
|
|
Project.all.each do |p|
|
... | | ... | |