diff --git a/config/initializers/postgres_required_versions.rb b/config/initializers/postgres_required_versions.rb index df147471e23..1151fd969bb 100644 --- a/config/initializers/postgres_required_versions.rb +++ b/config/initializers/postgres_required_versions.rb @@ -1,7 +1,10 @@ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend Module.new { def initialize(*args) super + check_version if respond_to?(:check_version) + end + def check_version msg = "The version of PostgreSQL being connected to is incompatible with #{Vmdb::Appliance.PRODUCT_NAME} (10 required)" if postgresql_version < 90500