Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d4fcd5b6
Commit
d4fcd5b6
authored
May 05, 2017
by
Gabriel Mazetto
Committed by
Robert Speicher
May 10, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates existing SystemHooks associated with GeoNodes to use new hook.
parent
253d7451
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
+25
-0
No files found.
db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
0 → 100644
View file @
d4fcd5b6
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class
UpdateGeoNodesSystemHooks
<
ActiveRecord
::
Migration
# Set this constant to true if this migration requires downtime.
DOWNTIME
=
false
def
up
attrs
=
{
push_events:
false
,
tag_push_events:
false
,
repository_update_events:
true
}
SystemHook
.
joins
(
'INNER JOIN "geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks".id'
).
update_all
(
attrs
)
end
def
down
attrs
=
{
push_events:
true
,
tag_push_events:
true
,
repository_update_events:
false
}
SystemHook
.
joins
(
'INNER JOIN "geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks".id'
).
update_all
(
attrs
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment