Commit bc1ffbca authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'handbook-rails_cheat_sheet-service-integration-fix' into 'master'

Fix update_attribute function parameters syntax

See merge request gitlab-org/gitlab!63513
parents 3e982a1e a37846de
......@@ -288,7 +288,7 @@ To change all Jira project to use the instance-level integration settings:
```ruby
jira_service_instance_id = JiraService.find_by(instance: true).id
JiraService.where(active: true, instance: false, template: false, inherit_from_id: nil).find_each do |service|
service.update_attribute(inherit_from_id: jira_service_instance_id)
service.update_attribute(:inherit_from_id, jira_service_instance_id)
end
```
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment