-
Notifications
You must be signed in to change notification settings - Fork 108
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
activerecord: Support insert_all on relation #658
Conversation
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1. refs: * rails/rails#38899 * https://github.com/rails/rails/blob/v6.1.7.8/activerecord/CHANGELOG.md Note: The implementation will be moved into AR::Relation since v7.2.
@tk0miya Thanks for your contribution! Please follow the instructions below for each change. Available commandsYou can use the following commands by commenting on this PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVE
/merge |
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1. The implementation of insert_all has been changed since v7.2. The implementation was moved to AR::Relation from AR::Persistence. So types follow the new structure. refs: * ruby#658 * rails/rails#38899 * rails/rails#51805 * https://github.com/rails/rails/blob/v6.1.7.8/activerecord/CHANGELOG.md
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1. The implementation of insert_all has been changed since v7.2. The implementation was moved to AR::Relation from AR::Persistence. So types follow the new structure. refs: * ruby#658 * rails/rails#38899 * rails/rails#51805 * https://github.com/rails/rails/blob/v6.1.7.8/activerecord/CHANGELOG.md
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1. The implementation of insert_all has been changed since v7.2. The implementation was moved to AR::Relation from AR::Persistence. So types follow the new structure. refs: * ruby#658 * rails/rails#38899 * rails/rails#51805 * https://github.com/rails/rails/blob/v6.1.7.8/activerecord/CHANGELOG.md
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1. The implementation of insert_all has been changed since v7.2. The implementation was moved to AR::Relation from AR::Persistence. So types follow the new structure. refs: * #658 * rails/rails#38899 * rails/rails#51805 * https://github.com/rails/rails/blob/v6.1.7.8/activerecord/CHANGELOG.md
ActiveRecord supports insert and upsert methods on relation classes (AssociationRelation and CollectionProxy) since v6.1.
refs:
Note:
The implementation will be moved into AR::Relation since v7.2.