config/initializers/1_postgresql_only.rb (2 lines of code) (raw):

# frozen_string_literal: true raise "PostgreSQL is the only supported database from GitLab 12.1" unless Gitlab::Database.postgresql?