1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #41756 from c960657/patch-3

Probe with :array? instead of :oid
This commit is contained in:
Rafael França 2021-03-25 17:08:02 -04:00 committed by GitHub
commit d9494f9ec6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -619,7 +619,7 @@ module ActiveRecord
def warn_if_deprecated_type(column)
return if attributes_to_define_after_schema_loads.key?(column.name)
return unless column.respond_to?(:oid)
return unless column.respond_to?(:array?)
if column.array?
array_arguments = ", array: true"