Skip to content

Commit 20705b6

Browse files
Enable active_record.postgresql_adapter_decode_dates framework default
1 parent 6e6a9df commit 20705b6

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

config/initializers/new_framework_defaults_7_2.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,4 @@
22
Rails.application.config.active_record.validate_migration_timestamps = true
33
Rails.application.config.yjit = true
44
Rails.application.config.active_storage.web_image_content_types = %w[image/png image/jpeg image/gif image/webp]
5-
6-
###
7-
# Controls whether the PostgresqlAdapter should decode dates automatically with manual queries.
8-
#
9-
# Example:
10-
# ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.select_value("select '2024-01-01'::date") #=> Date
11-
#
12-
# This query used to return a `String`.
13-
#++
14-
# Rails.application.config.active_record.postgresql_adapter_decode_dates = true
5+
Rails.application.config.active_record.postgresql_adapter_decode_dates = true

0 commit comments

Comments
 (0)