New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add active_record.postgresql_adapter_decode_dates
config
#51763
Add active_record.postgresql_adapter_decode_dates
config
#51763
Conversation
1ea165b
to
b8c3f24
Compare
...ib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_7_2.rb.tt
Outdated
Show resolved
Hide resolved
activerecord/test/cases/adapters/postgresql/postgresql_adapter_test.rb
Outdated
Show resolved
Hide resolved
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
Show resolved
Hide resolved
fddc0b8
to
b4fcbe7
Compare
b4fcbe7
to
dafe0fc
Compare
b2bfd24
to
153fbaf
Compare
153fbaf
to
401c1d3
Compare
401c1d3
to
c40b8b7
Compare
@byroot I rebased to fix the failing tests. I pushed a attempt at a fix for the flake: #51783 |
c40b8b7
to
95f9822
Compare
to toggle automatic decoding of dates column with the PostgresqlAdapter. PR rails#51483 is a breaking change and should have been gated behind a config.
95f9822
to
478874a
Compare
…tes-config Add `active_record.postgresql_adapter_decode_dates` config
If you're using AR outside of Rails, this now stops decoding dates entirely, right? |
@zzak Yup, without Rails, it would default to the old behavior before the breaking change was introduced. I am hoping to add a deprecation warning at some point and remove the old behavior entirely. Adding the deprecation warning in this PR turned out more complex than anticipated. Any concern? |
Nope, sorry I am still catching up. Thank you! |
Add
active_record.postgresql_adapter_decode_dates
configto toggle automatic decoding of dates column with the PostgresqlAdapter.
PR #51483 is a breaking change and should have been gated behind a config.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]