Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

'increment' and 'decrement' methods for ActiveRecord::Relation #14

Closed
wants to merge 2 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

pch commented Sep 10, 2010

I've added 'increment' and 'decrement' methods to ActiveRecord::Relation. They allow for incrementing/decrementing values without fetching data from the database first - useful when there's a possibility of desynchronizing column value by updating it with pre-fetched value once it had been already overwritten in another request.

Member

mikel commented Sep 11, 2010

Good work and good tests.

Please get some +1's on an appropriate lighthouse ticket or on the rails-core mailing list as per https://rails.lighthouseapp.com/projects/8994/sending-patches and then let us know.

Mikel

Yeah, totally +1 on this. Open up a lighthouse ticket and let's get this thing merged.

@tenderlove tenderlove pushed a commit to tenderlove/rails that referenced this pull request Dec 2, 2014

@jrafanie jrafanie Merge pull request #14 from tenderlove/database_version
Revert "Log friendly database version."
cab310a

@dhh dhh pushed a commit to dhh/rails that referenced this pull request Dec 14, 2015

@cristianbica cristianbica Improve channel actions dispatcher to allow inheritance/mixins
Fixes #14
a97a1fc

@kangkyu kangkyu pushed a commit to kangkyu/rails that referenced this pull request Jul 3, 2016

@wagurano wagurano Merge pull request #14 from keepcosmos/rails-on-rack
Rails on Rack 부분 번역 추가
67158f4

@rafaelfranca rafaelfranca pushed a commit to rafaelfranca/omg-rails that referenced this pull request Jul 31, 2017

@dhh dhh Merge pull request #14 from maratgaliev/readme_patch
Update README.md
88d1ecf

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment