We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ab73e commit 9bf4b9cCopy full SHA for 9bf4b9c
lib/activerecord-postgres-array/string.rb
@@ -32,6 +32,8 @@ def from_postgres_array(base_type = :string)
32
elements.collect(&:to_f)
33
elsif base_type == :integer || base_type == :bigint
34
elements.collect(&:to_i)
35
+ elsif base_type == :timestamp
36
+ elements.collect(&:to_time)
37
else
38
elements
39
end
0 commit comments