ee/db/migrate/20170505133904_update_geo_nodes_system_hooks.rb
# Set this constant to true if this migration requires downtime.
Set this constant to true if this migration requires downtime.
Set this constant to true if this migration requires downtime .
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
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
Set this constant to true if this migration requires downtime.
Set this constant to true if this migration requires downtime .