diff options
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 2fa357993f..94584a5ea4 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -515,6 +515,8 @@ module ActiveRecord def translate_field_type(field_type) # Match the beginning of field_type since it may have a size constraint on the end. case field_type + # PostgreSQL array data types. + when /\[\]$/i then 'string' when /^timestamp/i then 'datetime' when /^real|^money/i then 'float' when /^interval/i then 'string' |