|
|
```bash
|
|
|
bin/rails c
|
|
|
`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
|
|
|
``` |
|
|
\ No newline at end of file |