method

decode_dates

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

decode_dates
public

Toggles automatic decoding of date columns.

ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date").class #=> String
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.decode_dates = true
ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date").class #=> Date