Pretty straight forward, not looking to reinvent the wheel but is there rails method that turns results from a PSQL array to a ruby array.
example
results = ActiveRecord::Base.connection.execute("select array_agg(id) from users;").to_a
# => [{"array_agg"=>"{1,2,3}"}]
thing.call(results[0]["array_agg"])
# => ["1", "2","3"]