Skip to content

Properly support `main:` and provide a helper for this

Kamil Trzciński requested to merge main-database-helper into master

What does this MR do?

This is:

  • Updates code to support main:
  • Non-breaking change
  • Adds a helper to check if given name is a main_database, this is to be used instead of .primary?
  • This adapts config/database.yml.postgres to ensure that :main is reflected in rspecs (this is temporarily removed to ensure that application continues working properly till we update Omnibus/CNG).

Resolves:

Does this MR meet the acceptance criteria?

Conformity

Edited by Kamil Trzciński

Merge request reports