We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acc606d commit e0ea9c9Copy full SHA for e0ea9c9
lib/active_record/connection_adapters/em_postgresql_adapter.rb
@@ -162,7 +162,7 @@ def self.em_postgresql_connection(config) # :nodoc:
162
# should know about this but can't detect it there, so deal with it here.
163
if ActiveRecord.version < Gem::Version.new('4.2.0')
164
ActiveRecord::ConnectionAdapters::PostgreSQLColumn.money_precision = (client.server_version >= 80300) ? 19 : 10
165
- else
+ elsif ActiveRecord.version < Gem::Version.new('5.0.0')
166
ActiveRecord::ConnectionAdapters::EMPostgreSQLAdapter::OID::Money.precision = (client.server_version >= 80300) ? 19 : 10
167
# ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Money.precision = (client.server_version >= 80300) ? 19 : 10
168
end
0 commit comments