ActiveRecord::Base.connection.execute "UPDATE requests SET count=count
+10 WHERE id=1 AND count <= 1000"
But, I can't know if condition,..'count <= 1000' is met
How can I know if condtion is met?
Please in mind, any other process very often update count, not only
add but also subtract
appreciate any help.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.