Is there a quick way to decrement a field without having a sub-query?

.update(field_count: :field_count - 1

I'm not sure if this is implicit or I need a sub-query.  Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/e026a428-dcef-47bb-b5f8-fd0e21cff6e6n%40googlegroups.com.

Reply via email to