ee/db/migrate/20170620063751_remove_geo_primary_system_hook.rb
# Older versions of GitLab added a system hook for the primary Geo node.
# This would cause all events to be fired for the primary as well.
Older versions of GitLab added a system hook for the primary Geo node.
This would cause all events to be fired for the primary as well.
Older versions of GitLab added a system hook for the primary Geo node . This would cause all events to be fired for the primary as well .
def up
    return unless geo_enabled?
    execute <<-SQL
      DELETE FROM web_hooks WHERE
      type = 'SystemHook' AND
      id IN (
      SELECT system_hook_id FROM geo_nodes WHERE
        "primary" = #{true_value}
      );
    SQL
  end
def up return unless geo_enabled? execute <<-SQL 
      DELETE FROM web_hooks WHERE
      type = 'SystemHook' AND
      id IN (
      SELECT system_hook_id FROM geo_nodes WHERE
        "primary" =  #{ true_value } 
      );
     SQL end
Older versions of GitLab added a system hook for the primary Geo node.
Older versions of GitLab added a system hook for the primary Geo node .