GitLab steht aufgrund eines wichtigen Updates heute, zwischen 18:00 und 19:00 Uhr, nicht zur Verfügung.

  • Rémy Coutable's avatar
    Ensure rake tasks that don't need a DB connection can be run without one · e6f3fe5d
    Rémy Coutable authored
    When using without a DB
    connection, we get a "PG::ConnectionBad: could not connect to server"
    error because ActiveRecord::Base.connection doesn't exist. By using
    ActiveRecord::Base.connected? we ensure we don't get this error if
    the connection is missing, which is the all point of the
    Gitlab::CurrentSettings#connect_to_db? method!
current_settings.rb 2.04 KB