Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ovirt to implement their own pg version check
This doesn't fix the following bug but allows them to implement their own adapter that opts-out of the manageiq pg version check and instead implement their own via a check_version, something like this: ```ruby module ActiveRecord module ConnectionHandling # :nodoc: def ovirt_postgresql_connection(config) conn_params = config.symbolize_keys ...rest of the existing rails 5.1 pg adapter method until... ConnectionAdapters::OvirtPostgreSQLAdapter.new(nil, logger, conn_params, config) end end module ConnectionAdapters class OvirtPostgreSQLAdapter < PostgreSQLAdapter def check_version raise "AAAAA" if postgresql_version > XXX end end end end ``` https://bugzilla.redhat.com/show_bug.cgi?id=1734770
- Loading branch information