Skip to content

Commit e28c751

Browse files
prathamesh-sonpatkikares
authored andcommitted
Type is changed from Rails 4.2
1 parent 81d08f8 commit e28c751

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/arjdbc/postgresql/oid_types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ module PostgreSQL
77
module OIDTypes
88

99
OID = ActiveRecord::ConnectionAdapters::PostgreSQL::OID
10+
Type = ActiveRecord::Type if ActiveRecord::VERSION.to_s >= '4.2'
1011

1112
def get_oid_type(oid, fmod, column_name)
1213
type_map.fetch(oid, fmod) {

0 commit comments

Comments
 (0)