-
Notifications
You must be signed in to change notification settings - Fork 22.1k
Deprecate {insert|update|delete}_sql in DatabaseStatements
#23086
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
Deprecate {insert|update|delete}_sql in DatabaseStatements
#23086
Conversation
|
r? @chancancode (@rails-bot has picked a reviewer for you, use r? to override) |
|
In Rails 3.0, Currently I think that we don't use |
|
Could you add a CHANGELOG entry? |
4c694cd to
26262a4
Compare
|
I added a CHANGELOG entry! |
|
Needs a deprecation test? |
1a0f7fd to
edf289e
Compare
73dc026 to
7da8d51
Compare
3850869 to
cdf5724
Compare
c703d7c to
87987f7
Compare
Originally, `{insert|update|delete}_sql` is protected methods.
We can use the `{insert|update|delete}` public methods instead.
87987f7 to
6b937bb
Compare
|
Added a deprecation test. |
Deprecate `{insert|update|delete}_sql` in `DatabaseStatements`
Originally,
{insert|update|delete}_sqlis protected methods.We can use the
{insert|update|delete}public methods instead.https://github.com/rails/rails/blob/v5.0.0.beta1/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb#L378-L392