0.0
No commit activity in last 3 years
No release in over 3 years
update-fields provides convience methods for running an atomic update on a single field or multiple fields in a database row.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

UpdateFields¶ ↑

Run atomic updates on a single field or multiple fields of a activerecord model

Installation¶ ↑

Rails 3.0¶ ↑

Add the following to your Gemfile:

gem 'update-fields'

Usage¶ ↑

@database_model.update_fields(:field1 => "some value", :field2 => 2, :field3 => true)

or

@database_model.update_field(:balance, "balance - 100")